@@ -816,21 +816,25 @@ def view_archive_in_browser(self, button, latest_memento=False):
816
816
817
817
class WAILGUIFrame_Advanced (wx .Panel ):
818
818
class ServicesPanel (wx .Panel , threading .Thread ):
819
- def make_button (self , label ):
820
- return wx .Button (
819
+ def make_button (self , label , tooltip = "" ):
820
+ # Ideally this would be abstract and in WAILConfig for reuse, but wxPython needs a reference to the
821
+ # parent when creating the button, limiting this function's reuse by other panels
822
+ but = wx .Button (
821
823
self , wx .ID_ANY , label , style = wx .BU_EXACTFIT
822
824
)
825
+ but .SetToolTip (tooltip )
826
+ return but
823
827
824
828
def __init__ (self , parent ):
825
829
wx .Panel .__init__ (self , parent )
826
830
827
- self .fix_wayback = self .make_button (config .button_label_fix )
828
- self .fix_heritrix = self .make_button (config .button_label_fix )
829
- self .fix_memgator = self .make_button (config .button_label_fix )
831
+ self .fix_wayback = self .make_button (config .button_label_fix , config . tooltip_fix_wayback )
832
+ self .fix_heritrix = self .make_button (config .button_label_fix , config . tooltip_fix_heritrix )
833
+ self .fix_memgator = self .make_button (config .button_label_fix , config . tooltip_fix_memgator )
830
834
831
- self .kill_wayback = self .make_button (config .button_label_kill )
832
- self .kill_heritrix = self .make_button (config .button_label_kill )
833
- self .kill_memgator = self .make_button (config .button_label_kill )
835
+ self .kill_wayback = self .make_button (config .button_label_kill , config . tooltip_kill_wayback )
836
+ self .kill_heritrix = self .make_button (config .button_label_kill , config . tooltip_kill_heritrix )
837
+ self .kill_memgator = self .make_button (config .button_label_kill , config . tooltip_kill_memgator )
834
838
835
839
self .status_wayback = wx .StaticText (self , wx .ID_ANY , config .service_enabled_label_NO )
836
840
self .status_heritrix = wx .StaticText (self , wx .ID_ANY , config .service_enabled_label_NO )
@@ -1067,9 +1071,11 @@ def __init__(self, parent):
1067
1071
self .view_wayback_in_browser_button = wx .Button (
1068
1072
self , - 1 , config .button_label_wayback
1069
1073
)
1074
+ self .view_wayback_in_browser_button .SetToolTip (config .tooltip_view_wayback )
1070
1075
self .edit_wayback_configuration = wx .Button (
1071
1076
self , - 1 , config .button_label_edit_wayback_config
1072
1077
)
1078
+ self .edit_wayback_configuration .SetToolTip (config .tooltip_edit_wayback )
1073
1079
self .view_wayback_in_browser_button .Bind (
1074
1080
wx .EVT_BUTTON , self .open_wayback_in_browser
1075
1081
)
@@ -1514,11 +1520,13 @@ def __init__(self, parent):
1514
1520
view_archives_folder_button_button = wx .Button (
1515
1521
self , 1 , config .button_label_view_archive_files
1516
1522
)
1523
+ view_archives_folder_button_button .SetToolTip (config .tooltip_view_archives_folder )
1517
1524
1518
1525
view_archives_folder_button_button .Bind (wx .EVT_BUTTON ,
1519
1526
self .open_archives_folder )
1520
1527
self .test_update = wx .Button (self , 1 ,
1521
1528
config .button_label_check_for_updates )
1529
+ self .test_update .SetToolTip (config .tooltip_check_for_updates )
1522
1530
1523
1531
box = wx .BoxSizer (wx .VERTICAL )
1524
1532
box .Add (view_archives_folder_button_button , 0 , wx .EXPAND | wx .ALL , 1 )
0 commit comments