MCPcopy Create free account
hub / github.com/ActiveState/code / body

Method body

recipes/Python/498151_Example_For_winreg_2/recipe-498151.py:42–51  ·  view source on GitHub ↗
(self, master)

Source from the content-addressed store, hash-verified

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()

Callers 1

recipe-483759.pyFile · 0.45

Calls 6

LabelFrameClass · 0.85
EntryClass · 0.50
ButtonClass · 0.50
insertMethod · 0.45
gridMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected