(self, master)
| 40 | tkSimpleDialog.Dialog.__init__(self, parent, title) |
| 41 | |
| 42 | def body(self, master): |
| 43 | self.filename = LabelFrame(master, text='Filename') |
| 44 | self.entry = Entry(self.filename) |
| 45 | if hasattr(self.widget, 'shortcut'): |
| 46 | self.entry.insert(0, self.widget.shortcut) |
| 47 | self.entry.grid(row=0, column=0, padx=5, pady=5) |
| 48 | self.button = Button(self.filename, text='Browse...', command=self.command) |
| 49 | self.button.grid(row=0, column=1, padx=5, pady=5) |
| 50 | self.filename.pack() |
| 51 | return self.entry |
| 52 | |
| 53 | def command(self): |
| 54 | filename = tkFileDialog.Open().show() |
no test coverage detected