@@ -611,9 +611,9 @@ def create_edit_menu(self) -> None:
611
611
self .edit_menu = tk .Menu (self .menu_bar )
612
612
self .menu_bar .add_cascade (menu = self .edit_menu , label = "Edit" , underline = 0 )
613
613
self .edit_menu .add_command (label = "Open .cpypmconfig" ,
614
- command = lambda : open_application (str (self .cpypmconfig_path )), underline = 6 )
614
+ command = lambda : self . open_file (str (self .cpypmconfig_path )), underline = 6 )
615
615
self .edit_menu .add_command (label = "Open .cpypmconfig file location" ,
616
- command = lambda : open_application (str (self .cpypmconfig_path .parent )), underline = 23 )
616
+ command = lambda : self . open_file (str (self .cpypmconfig_path .parent )), underline = 23 )
617
617
self .edit_menu .add_separator ()
618
618
self .edit_menu .add_command (label = "Save changes" , command = self .save_modified , underline = 0 ,
619
619
accelerator = self .make_key_bind (ctrl_cmd = True , mac_ctrl = False , shift = False ,
@@ -665,8 +665,8 @@ def create_help_menu(self) -> None:
665
665
"""
666
666
self .help_menu = tk .Menu (self .menu_bar )
667
667
self .menu_bar .add_cascade (menu = self .help_menu , label = "Help" , underline = 0 )
668
- self .help_menu .add_command (label = "Open configuration" , command = lambda : open_application (str (self .config_path )), underline = 5 )
669
- self .help_menu .add_command (label = "Open logs" , command = lambda : open_application (str (Path .cwd () / "log.log" )), underline = 5 )
668
+ self .help_menu .add_command (label = "Open configuration" , command = lambda : self . open_file (str (self .config_path )), underline = 5 )
669
+ self .help_menu .add_command (label = "Open logs" , command = lambda : self . open_file (str (Path .cwd () / "log.log" )), underline = 5 )
670
670
self .help_menu .add_separator ()
671
671
self .help_menu .add_command (label = "Open README.md" ,
672
672
command = self .start_open_readme_thread , underline = 5 ,
@@ -675,10 +675,12 @@ def create_help_menu(self) -> None:
675
675
self .convert_to_md_var = tk .BooleanVar (value = True )
676
676
self .disable_open_readme = False
677
677
self .help_menu .add_checkbutton (label = "Convert Markdown to HTML" , variable = self .convert_to_md_var , onvalue = True , offvalue = False )
678
- # TODO: Implement opening the project on GitHub
679
- self .help_menu .add_command (label = "Open project on GitHub" , state = tk .DISABLED , underline = 5 )
680
- # TODO: Implement opening an issue on GitHub
681
- self .help_menu .add_command (label = "Open issue on GitHub" , state = tk .DISABLED , underline = 5 )
678
+ self .help_menu .add_command (label = "Open project on GitHub" ,
679
+ command = lambda : self .open_file ("https://github.com/UnsignedArduino/CircuitPython-Project-Manager" ),
680
+ underline = 5 )
681
+ self .help_menu .add_command (label = "Open issue on GitHub" ,
682
+ command = lambda : self .open_file ("https://github.com/UnsignedArduino/CircuitPython-Project-Manager/issues/new" ),
683
+ underline = 5 )
682
684
683
685
def update_menu_state (self ) -> None :
684
686
"""
0 commit comments