~sebastian-hilbert/gnumed/master

« back to all changes in this revision

Viewing changes to gnumed/gnumed/client/wxpython/gmGuiMain.py

  • Committer: Karsten Hilbert
  • Date: 2019-10-23 11:14:35 UTC
  • Revision ID: git-v1:be0cc8e7a7d8bc52e8776e289a1651d90ad0fded
Cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
807
807
                                pass
808
808
                        item = menu_debugging.Append(-1, _('Test placeholder'), _('Manually test placeholders'))
809
809
                        self.Bind(wx.EVT_MENU, self.__on_test_placeholders, item)
 
810
                        # help debugging hang with document insertion
810
811
 
811
812
                help_menu.Append(wx.NewId(), _('Debugging ...'), menu_debugging)
812
813
                help_menu.AppendSeparator()
3658
3659
                gmExceptionHandlingWidgets.set_staff_name(staff_name = tmp)
3659
3660
 
3660
3661
                return True
 
3662
 
3661
3663
        #----------------------------------------------
3662
3664
        def __verify_praxis_branch(self):
3663
3665
 
3701
3703
                        return True
3702
3704
                _log.info('user decided to not connect to this database')
3703
3705
                return False
 
3706
 
3704
3707
        #----------------------------------------------
3705
3708
        def __update_workplace_list(self):
3706
3709
                wps = gmPraxis.gmCurrentPraxisBranch().workplaces
3715
3718
                        value = wps
3716
3719
                )
3717
3720
                _cfg.reload_file_source(file = prefs_file)
 
3721
 
3718
3722
        #----------------------------------------------
3719
3723
        def __setup_prefs_file(self):
3720
3724
                """Setup access to a config file for storing preferences."""
3755
3759
                _log.info('user preferences file: %s', prefs_file)
3756
3760
 
3757
3761
                return True
 
3762
 
3758
3763
        #----------------------------------------------
3759
3764
        def __setup_scripting_listener(self):
3760
3765
 
3812
3817
                        return False
3813
3818
 
3814
3819
                return True
 
3820
 
3815
3821
        #----------------------------------------------
3816
3822
        def __setup_platform(self):
3817
3823
 
3833
3839
                        wx.SystemOptions.SetOptionInt('mac.textcontrol-use-spell-checker', 1)
3834
3840
                else:
3835
3841
                        _log.info('running on an unknown platform (%s)' % wx.Platform)
 
3842
 
3836
3843
        #----------------------------------------------
3837
3844
        def __check_db_lang(self):
3838
3845
                if gmI18N.system_locale is None or gmI18N.system_locale == '':