@@ -59,6 +59,11 @@ def _create_documentation_frame(self, current_file: str) -> None:
59
59
documentation_grid .pack (fill = "both" , expand = True )
60
60
61
61
for row , (text , tooltip ) in enumerate (self .DOCUMENTATION_SECTIONS ):
62
+ if row == 3 and ProgramSettings .get_setting ("gui_complexity" ) == "simple" :
63
+ # Skip the mandatory level row in simple mode
64
+ self .mandatory_level = ttk .Progressbar (documentation_grid , length = 100 , mode = "determinate" )
65
+ continue
66
+
62
67
# Create labels for the first column with static descriptive text
63
68
label = ttk .Label (documentation_grid , text = text )
64
69
label .grid (row = row , column = 0 , sticky = "w" )
@@ -78,30 +83,26 @@ def _create_documentation_frame(self, current_file: str) -> None:
78
83
self .update_why_why_now_tooltip (current_file )
79
84
80
85
def _create_bottom_row (self , documentation_grid : ttk .Frame , row : int ) -> None :
81
- gui_complexity = ProgramSettings .get_setting ("gui_complexity" )
82
-
83
86
bottom_frame = ttk .Frame (documentation_grid )
84
87
bottom_frame .grid (row = row , column = 1 , sticky = "ew" ) # ew to stretch horizontally
85
88
86
89
self .mandatory_level = ttk .Progressbar (bottom_frame , length = 100 , mode = "determinate" )
87
- if gui_complexity != "simple" :
88
- self .mandatory_level .pack (side = tk .LEFT , fill = "x" , expand = True , padx = (0 , 100 ))
90
+ self .mandatory_level .pack (side = tk .LEFT , fill = "x" , expand = True , padx = (0 , 100 ))
89
91
90
92
auto_open_checkbox = ttk .Checkbutton (
91
93
bottom_frame ,
92
94
text = _ ("Automatically open documentation links in browser" ),
93
95
variable = self .auto_open_var ,
94
96
command = lambda : ProgramSettings .set_setting ("auto_open_doc_in_browser" , self .auto_open_var .get ()),
95
97
)
96
- if gui_complexity != "simple" :
97
- show_tooltip (
98
- auto_open_checkbox ,
99
- _ (
100
- "Automatically open all the above documentation links in a browser\n "
101
- "whenever the current intermediate parameter file changes"
102
- ),
103
- )
104
- auto_open_checkbox .pack (side = tk .LEFT , expand = False )
98
+ show_tooltip (
99
+ auto_open_checkbox ,
100
+ _ (
101
+ "Automatically open all the above documentation links in a browser\n "
102
+ "whenever the current intermediate parameter file changes"
103
+ ),
104
+ )
105
+ auto_open_checkbox .pack (side = tk .LEFT , expand = False )
105
106
106
107
def update_why_why_now_tooltip (self , current_file : str ) -> None :
107
108
why_tooltip_text = self .local_filesystem .get_seq_tooltip_text (current_file , "why" )
0 commit comments