MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / buttonBox

Method buttonBox

src/com/dtmilano/android/culebron.py:2167–2182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2165 self.buttonBox()
2166
2167 def buttonBox(self):
2168 # add standard button box. override if you don't want the
2169 # standard buttons
2170
2171 box = tkinter.Frame(self)
2172
2173 self.ok = tkinter.Button(box, text="OK", width=10, command=self.onOk, default=tkinter.ACTIVE,
2174 state=tkinter.DISABLED)
2175 self.ok.grid(row=6, column=1, sticky=tkinter.E, padx=5, pady=5)
2176 w = tkinter.Button(box, text="Cancel", width=10, command=self.onCancel)
2177 w.grid(row=6, column=2, sticky=tkinter.E, padx=5, pady=5)
2178
2179 self.bind("<Return>", self.onOk)
2180 self.bind("<Escape>", self.onCancel)
2181
2182 box.grid(row=6, column=1, columnspan=3)
2183
2184 def onValidate(self, value):
2185 if self.sp.get() and self.ep.get() and self.d.get() and self.s.get():

Callers 1

__init__Method · 0.95

Calls 1

gridMethod · 0.80

Tested by

no test coverage detected