Kaydet (Commit) 20172f9b authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

check in Tal Einat's update to tabpage.py

Patch 1612746

M    configDialog.py
M    NEWS.txt
AM   tabbedpages.py
üst 1c1ac381
...@@ -3,6 +3,9 @@ What's New in IDLE 2.6a1? ...@@ -3,6 +3,9 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X* *Release date: XX-XXX-200X*
- tabpage.py updated: tabbedPages.py now supports multiple dynamic rows
of tabs. Patch 1612746 Tal Einat.
- Add confirmation dialog before printing. Patch 1717170 Tal Einat. - Add confirmation dialog before printing. Patch 1717170 Tal Einat.
- Show paste position if > 80 col. Patch 1659326 Tal Einat. - Show paste position if > 80 col. Patch 1659326 Tal Einat.
......
...@@ -15,7 +15,7 @@ import string, copy ...@@ -15,7 +15,7 @@ import string, copy
from configHandler import idleConf from configHandler import idleConf
from dynOptionMenuWidget import DynOptionMenu from dynOptionMenuWidget import DynOptionMenu
from tabpage import TabPageSet from tabbedpages import TabbedPageSet
from keybindingDialog import GetKeysDialog from keybindingDialog import GetKeysDialog
from configSectionNameDialog import GetCfgSectionNameDialog from configSectionNameDialog import GetCfgSectionNameDialog
from configHelpSourceEdit import GetHelpSourceDialog from configHelpSourceEdit import GetHelpSourceDialog
...@@ -65,10 +65,9 @@ class ConfigDialog(Toplevel): ...@@ -65,10 +65,9 @@ class ConfigDialog(Toplevel):
self.wait_window() self.wait_window()
def CreateWidgets(self): def CreateWidgets(self):
self.tabPages = TabPageSet(self, self.tabPages = TabbedPageSet(self,
pageNames=['Fonts/Tabs','Highlighting','Keys','General']) page_names=['Fonts/Tabs','Highlighting','Keys','General'])
self.tabPages.ChangePage()#activates default (first) page frameActionButtons = Frame(self,pady=2)
frameActionButtons = Frame(self)
#action buttons #action buttons
self.buttonHelp = Button(frameActionButtons,text='Help', self.buttonHelp = Button(frameActionButtons,text='Help',
command=self.Help,takefocus=FALSE, command=self.Help,takefocus=FALSE,
...@@ -103,7 +102,7 @@ class ConfigDialog(Toplevel): ...@@ -103,7 +102,7 @@ class ConfigDialog(Toplevel):
self.editFont=tkFont.Font(self,('courier',10,'normal')) self.editFont=tkFont.Font(self,('courier',10,'normal'))
##widget creation ##widget creation
#body frame #body frame
frame=self.tabPages.pages['Fonts/Tabs']['page'] frame=self.tabPages.pages['Fonts/Tabs'].frame
#body section frames #body section frames
frameFont=LabelFrame(frame,borderwidth=2,relief=GROOVE, frameFont=LabelFrame(frame,borderwidth=2,relief=GROOVE,
text=' Base Editor Font ') text=' Base Editor Font ')
...@@ -167,7 +166,7 @@ class ConfigDialog(Toplevel): ...@@ -167,7 +166,7 @@ class ConfigDialog(Toplevel):
self.highlightTarget=StringVar(self) self.highlightTarget=StringVar(self)
##widget creation ##widget creation
#body frame #body frame
frame=self.tabPages.pages['Highlighting']['page'] frame=self.tabPages.pages['Highlighting'].frame
#body section frames #body section frames
frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE, frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
text=' Custom Highlighting ') text=' Custom Highlighting ')
...@@ -255,7 +254,7 @@ class ConfigDialog(Toplevel): ...@@ -255,7 +254,7 @@ class ConfigDialog(Toplevel):
self.keyBinding=StringVar(self) self.keyBinding=StringVar(self)
##widget creation ##widget creation
#body frame #body frame
frame=self.tabPages.pages['Keys']['page'] frame=self.tabPages.pages['Keys'].frame
#body section frames #body section frames
frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE, frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
text=' Custom Key Bindings ') text=' Custom Key Bindings ')
...@@ -325,7 +324,7 @@ class ConfigDialog(Toplevel): ...@@ -325,7 +324,7 @@ class ConfigDialog(Toplevel):
self.helpBrowser=StringVar(self) self.helpBrowser=StringVar(self)
#widget creation #widget creation
#body #body
frame=self.tabPages.pages['General']['page'] frame=self.tabPages.pages['General'].frame
#body section frames #body section frames
frameRun=LabelFrame(frame,borderwidth=2,relief=GROOVE, frameRun=LabelFrame(frame,borderwidth=2,relief=GROOVE,
text=' Startup Preferences ') text=' Startup Preferences ')
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment