File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,12 @@ def _build_gui_(self):
228228 xscrollcommand = xsb .set ,
229229 yscrollcommand = ysb .set )
230230 self .tree .pack (fill = tk .Y , expand = True )
231+
232+ self .refresh_button = ttk .Button (
233+ lpane ,
234+ text = "refresh list" ,
235+ command = self .refresh )
236+ self .refresh_button .pack (fill = tk .X )
231237
232238 # -- right pane, content of selected snapshot
233239
@@ -264,6 +270,14 @@ def receiver(self, event):
264270 def show_contents (self , text ):
265271 self .snapview .delete ("1.0" , tk .END )
266272 self .snapview .insert (tk .END , text )
273+
274+ def refresh (self ):
275+ kids = self .tree .get_children ()
276+ for item in kids :
277+ self .tree .delete (item )
278+ kids = self .tree .get_children ()
279+ self .uids = []
280+ self .load_data ()
267281
268282 def load_data (self ):
269283 parents = []
You can’t perform that action at this time.
0 commit comments