@@ -48,6 +48,7 @@ def render(self) -> str:
48
48
49
49
class PickDetails (VerticalScroll ):
50
50
"""A widget explaining why the last SUnit was picked."""
51
+
51
52
info_str = reactive ("" , recompose = True )
52
53
53
54
def __init__ (self ) -> None :
@@ -65,6 +66,7 @@ class SUQueue(VerticalScroll):
65
66
def __init__ (self , queue_name : str ) -> None :
66
67
super ().__init__ (classes = "queue" )
67
68
self .border_title = f"{ queue_name } queue"
69
+ self .display = queue_name == "Available"
68
70
69
71
def set_su_list (self , su_list : List [schedlogparser .ScheduleUnit ]):
70
72
"""Update the list of SUnits debing displayed."""
@@ -80,6 +82,7 @@ class RegionSchedScreen(Screen):
80
82
("escape" , "app.pop_screen" , "Regions" ),
81
83
("n" , "schedule_next" , "Next" ),
82
84
("p" , "unschedule_last" , "Prev" ),
85
+ ("q" , "hide_pending" , "Pending Queue" ),
83
86
]
84
87
CSS = """
85
88
CycleLine {
@@ -103,6 +106,7 @@ class RegionSchedScreen(Screen):
103
106
layout: grid;
104
107
grid-size: 2;
105
108
grid-columns: 1fr 2fr;
109
+ grid-rows: 3fr 2fr;
106
110
min-height: 4;
107
111
max-height: 12;
108
112
height: 30%
@@ -163,6 +167,10 @@ def action_unschedule_last(self):
163
167
self .cycles [action .picked_cycle ].children [- 1 ].remove ()
164
168
self .update_info_container ()
165
169
170
+ def action_hide_pending (self ):
171
+ """Toggle the pending queue container."""
172
+ self .pending_queue .display = not self .pending_queue .display
173
+
166
174
def update_info_container (self ):
167
175
"""Update the various info widgets after scheduling/unscheduling a node."""
168
176
if self .next_action_idx >= len (self .sched_region .sched_actions ):
0 commit comments