cpython: 3f10b8009060 (original) (raw)
--- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -77,8 +77,15 @@ class ConfigDialog(Toplevel): def CreateWidgets(self): self.tabPages = TabbedPageSet(self, page_names=['Fonts/Tabs', 'Highlighting', 'Keys', 'General'])
frameActionButtons = Frame(self, pady=2)[](#l1.7)
#action buttons[](#l1.8)
self.tabPages.pack(side=TOP, expand=TRUE, fill=BOTH)[](#l1.9)
self.CreatePageFontTab()[](#l1.10)
self.CreatePageHighlight()[](#l1.11)
self.CreatePageKeys()[](#l1.12)
self.CreatePageGeneral()[](#l1.13)
self.create_action_buttons().pack(side=BOTTOM)[](#l1.14)
Frame(self, height=2, borderwidth=0).pack(side=BOTTOM)[](#l1.15)
- def create_action_buttons(self): if macosxSupport.isAquaTk(): # Changing the default padding on OSX results in unreadable # text in the buttons
@@ -86,30 +93,25 @@ class ConfigDialog(Toplevel): else: paddingArgs = {'padx':6, 'pady':3} -# Comment out button creation and packing until implement self.Help -## self.buttonHelp = Button(frameActionButtons, text='Help', -## command=self.Help, takefocus=FALSE, -## **paddingArgs)
frame = Frame(self, pady=2)[](#l1.29) self.buttonOk = Button([](#l1.30)
frameActionButtons, text='Ok',[](#l1.31)
command=self.Ok, takefocus=FALSE, **paddingArgs)[](#l1.32)
frame, text='Ok', command=self.Ok,[](#l1.33)
takefocus=FALSE, **paddingArgs)[](#l1.34) self.buttonApply = Button([](#l1.35)
frameActionButtons, text='Apply',[](#l1.36)
command=self.Apply, takefocus=FALSE, **paddingArgs)[](#l1.37)
frame, text='Apply', command=self.Apply,[](#l1.38)
takefocus=FALSE, **paddingArgs)[](#l1.39) self.buttonCancel = Button([](#l1.40)
frameActionButtons, text='Cancel',[](#l1.41)
command=self.Cancel, takefocus=FALSE, **paddingArgs)[](#l1.42)
self.CreatePageFontTab()[](#l1.43)
self.CreatePageHighlight()[](#l1.44)
self.CreatePageKeys()[](#l1.45)
self.CreatePageGeneral()[](#l1.46)
frame, text='Cancel', command=self.Cancel,[](#l1.47)
takefocus=FALSE, **paddingArgs)[](#l1.48)
+# Comment out Help button creation and packing until implement self.Help +## self.buttonHelp = Button( +## frame, text='Help', command=self.Help, +## takefocus=FALSE, **paddingArgs)
self.buttonHelp.pack(side=RIGHT, padx=5)
self.buttonOk.pack(side=LEFT, padx=5)[](#l1.54)
self.buttonApply.pack(side=LEFT, padx=5)[](#l1.55)
self.buttonCancel.pack(side=LEFT, padx=5)[](#l1.56)
frameActionButtons.pack(side=BOTTOM)[](#l1.57)
Frame(self, height=2, borderwidth=0).pack(side=BOTTOM)[](#l1.58)
self.tabPages.pack(side=TOP, expand=TRUE, fill=BOTH)[](#l1.59)
return frame[](#l1.60)