@@ -1739,20 +1739,22 @@ def create_page_general(self):
1739
1739
rewrite changes['main']['HelpFiles'].
1740
1740
1741
1741
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
1756
1758
frame_help: LabelFrame
1757
1759
frame_helplist: Frame
1758
1760
frame_helplist_buttons: Frame
@@ -1771,32 +1773,24 @@ def create_page_general(self):
1771
1773
self .win_height = tracers .add (
1772
1774
StringVar (self ), ('main' , 'EditorWindow' , 'height' ))
1773
1775
1774
- # Create widgets:
1775
1776
# 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' )
1781
1781
frame_help = LabelFrame (self , borderwidth = 2 , relief = GROOVE ,
1782
1782
text = ' Additional Help Sources ' )
1783
- # frame_run.
1783
+ # Frame_window.
1784
+ frame_run = Frame (frame_window , borderwidth = 0 )
1784
1785
startup_title = Label (frame_run , text = 'At Startup' )
1785
1786
self .startup_editor_on = Radiobutton (
1786
1787
frame_run , variable = self .startup_edit , value = 1 ,
1787
1788
text = "Open Edit Window" )
1788
1789
self .startup_shell_on = Radiobutton (
1789
1790
frame_run , variable = self .startup_edit , value = 0 ,
1790
1791
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 ,)
1800
1794
win_size_title = Label (
1801
1795
frame_win_size , text = 'Initial Window Size (in characters)' )
1802
1796
win_width_title = Label (frame_win_size , text = 'Width' )
@@ -1805,6 +1799,17 @@ def create_page_general(self):
1805
1799
win_height_title = Label (frame_win_size , text = 'Height' )
1806
1800
self .win_height_int = Entry (
1807
1801
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
+
1808
1813
# frame_help.
1809
1814
frame_helplist = Frame (frame_help )
1810
1815
frame_helplist_buttons = Frame (frame_helplist )
@@ -1826,25 +1831,27 @@ def create_page_general(self):
1826
1831
width = 8 , command = self .helplist_item_remove )
1827
1832
1828
1833
# 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 )
1833
1837
frame_help .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
1834
1838
# frame_run.
1839
+ frame_run .pack (side = TOP , padx = 5 , pady = 0 , fill = X )
1835
1840
startup_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
1836
1841
self .startup_shell_on .pack (side = RIGHT , anchor = W , padx = 5 , pady = 5 )
1837
1842
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 )
1842
1843
# frame_win_size.
1844
+ frame_win_size .pack (side = TOP , padx = 5 , pady = 0 , fill = X )
1843
1845
win_size_title .pack (side = LEFT , anchor = W , padx = 5 , pady = 5 )
1844
1846
self .win_height_int .pack (side = RIGHT , anchor = E , padx = 10 , pady = 5 )
1845
1847
win_height_title .pack (side = RIGHT , anchor = E , pady = 5 )
1846
1848
self .win_width_int .pack (side = RIGHT , anchor = E , padx = 10 , pady = 5 )
1847
1849
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 )
1848
1855
# frame_help.
1849
1856
frame_helplist_buttons .pack (side = RIGHT , padx = 5 , pady = 5 , fill = Y )
1850
1857
frame_helplist .pack (side = TOP , padx = 5 , pady = 5 , expand = TRUE , fill = BOTH )
0 commit comments