@@ -1739,20 +1739,22 @@ def create_page_general(self):
17391739 rewrite changes['main']['HelpFiles'].
17401740
17411741 Widgets for GenPage(Frame): (*) widgets bound to self
1742- frame_run: LabelFrame
1743- startup_title: Label
1744- (*)startup_editor_on: Radiobutton - startup_edit
1745- (*)startup_shell_on: Radiobutton - startup_edit
1746- frame_save: LabelFrame
1747- run_save_title: Label
1748- (*)save_ask_on: Radiobutton - autosave
1749- (*)save_auto_on: Radiobutton - autosave
1750- frame_win_size: LabelFrame
1751- win_size_title: Label
1752- win_width_title: Label
1753- (*)win_width_int: Entry - win_width
1754- win_height_title: Label
1755- (*)win_height_int: Entry - win_height
1742+ frame_window: LabelFrame
1743+ frame_run: Frame
1744+ startup_title: Label
1745+ (*)startup_editor_on: Radiobutton - startup_edit
1746+ (*)startup_shell_on: Radiobutton - startup_edit
1747+ frame_win_size: Frame
1748+ win_size_title: Label
1749+ win_width_title: Label
1750+ (*)win_width_int: Entry - win_width
1751+ win_height_title: Label
1752+ (*)win_height_int: Entry - win_height
1753+ frame_editor: LabelFrame
1754+ frame_save: Frame
1755+ run_save_title: Label
1756+ (*)save_ask_on: Radiobutton - autosave
1757+ (*)save_auto_on: Radiobutton - autosave
17561758 frame_help: LabelFrame
17571759 frame_helplist: Frame
17581760 frame_helplist_buttons: Frame
@@ -1771,32 +1773,24 @@ def create_page_general(self):
17711773 self .win_height = tracers .add (
17721774 StringVar (self ), ('main' , 'EditorWindow' , 'height' ))
17731775
1774- # Create widgets:
17751776 # Section frames.
1776- frame_run = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
1777- text = ' Startup Preferences ' )
1778- frame_save = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
1779- text = ' autosave Preferences ' )
1780- frame_win_size = Frame (self , borderwidth = 2 , relief = GROOVE )
1777+ frame_window = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
1778+ text = ' Window Preferences' )
1779+ frame_editor = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
1780+ text = ' Editor Preferences' )
17811781 frame_help = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
17821782 text = ' Additional Help Sources ' )
1783- # frame_run.
1783+ # Frame_window.
1784+ frame_run = Frame (frame_window , borderwidth = 0 )
17841785 startup_title = Label (frame_run , text = 'At Startup' )
17851786 self .startup_editor_on = Radiobutton (
17861787 frame_run , variable = self .startup_edit , value = 1 ,
17871788 text = "Open Edit Window" )
17881789 self .startup_shell_on = Radiobutton (
17891790 frame_run , variable = self .startup_edit , value = 0 ,
17901791 text = 'Open Shell Window' )
1791- # frame_save.
1792- run_save_title = Label (frame_save , text = 'At Start of Run (F5) ' )
1793- self .save_ask_on = Radiobutton (
1794- frame_save , variable = self .autosave , value = 0 ,
1795- text = "Prompt to Save" )
1796- self .save_auto_on = Radiobutton (
1797- frame_save , variable = self .autosave , value = 1 ,
1798- text = 'No Prompt' )
1799- # frame_win_size.
1792+
1793+ frame_win_size = Frame (frame_window , borderwidth = 0 ,)
18001794 win_size_title = Label (
18011795 frame_win_size , text = 'Initial Window Size (in characters)' )
18021796 win_width_title = Label (frame_win_size , text = 'Width' )
@@ -1805,6 +1799,17 @@ def create_page_general(self):
18051799 win_height_title = Label (frame_win_size , text = 'Height' )
18061800 self .win_height_int = Entry (
18071801 frame_win_size , textvariable = self .win_height , width = 3 )
1802+
1803+ # Frame_editor.
1804+ frame_save = Frame (frame_editor , borderwidth = 0 )
1805+ run_save_title = Label (frame_save , text = 'At Start of Run (F5) ' )
1806+ self .save_ask_on = Radiobutton (
1807+ frame_save , variable = self .autosave , value = 0 ,
1808+ text = "Prompt to Save" )
1809+ self .save_auto_on = Radiobutton (
1810+ frame_save , variable = self .autosave , value = 1 ,
1811+ text = 'No Prompt' )
1812+
18081813 # frame_help.
18091814 frame_helplist = Frame (frame_help )
18101815 frame_helplist_buttons = Frame (frame_helplist )
@@ -1826,25 +1831,27 @@ def create_page_general(self):
18261831 width = 8 , command = self .helplist_item_remove )
18271832
18281833 # Pack widgets:
1829- # body.
1830- frame_run .pack (side = TOP , padx = 5 , pady = 5 , fill = X )
1831- frame_save .pack (side = TOP , padx = 5 , pady = 5 , fill = X )
1832- frame_win_size .pack (side = TOP , padx = 5 , pady = 5 , fill = X )
1834+ # Body.
1835+ frame_window .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
1836+ frame_editor .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
18331837 frame_help .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
18341838 # frame_run.
1839+ frame_run .pack (side = TOP , padx = 5 , pady = 0 , fill = X )
18351840 startup_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
18361841 self .startup_shell_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
18371842 self .startup_editor_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
1838- # frame_save.
1839- run_save_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
1840- self .save_auto_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
1841- self .save_ask_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
18421843 # frame_win_size.
1844+ frame_win_size .pack (side = TOP , padx = 5 , pady = 0 , fill = X )
18431845 win_size_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
18441846 self .win_height_int .pack (side = RIGHT , anchor = E , padx = 10 , pady = 5 )
18451847 win_height_title .pack (side = RIGHT , anchor = E , pady = 5 )
18461848 self .win_width_int .pack (side = RIGHT , anchor = E , padx = 10 , pady = 5 )
18471849 win_width_title .pack (side = RIGHT , anchor = E , pady = 5 )
1850+ # frame_save.
1851+ frame_save .pack (side = TOP , padx = 5 , pady = 0 , fill = X )
1852+ run_save_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
1853+ self .save_auto_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
1854+ self .save_ask_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
18481855 # frame_help.
18491856 frame_helplist_buttons .pack (side = RIGHT , padx = 5 , pady = 5 , fill = Y )
18501857 frame_helplist .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
0 commit comments