Beispiel #1
0
    def _setup_usagelogging(self):
        self.usagelogging_cb.IsChecked = user_config.usagelogging.get_option('active', default_value=False)
        self.usagelogfile_tb.Text = user_config.usagelogging.get_option('logfilepath', default_value='')
        self.usagelogserver_tb.Text = user_config.usagelogging.get_option('logserverurl', default_value='')

        self.cur_usagelogfile_tb.Text = get_current_usage_logfile()
        self.cur_usagelogfile_tb.IsReadOnly = True
        self.cur_usageserverurl_tb.Text = get_current_usage_serverurl()
        self.cur_usageserverurl_tb.IsReadOnly = True
Beispiel #2
0
    def _setup_usagelogging(self):
        """Reads the pyRevit usage logging config and updates the ui
        """
        self.usagelogging_cb.IsChecked = \
            user_config.usagelogging.get_option('active',
                                                default_value=False)
        self.usagelogfile_tb.Text = \
            user_config.usagelogging.get_option('logfilepath',
                                                default_value='')
        self.usagelogserver_tb.Text = \
            user_config.usagelogging.get_option('logserverurl',
                                                default_value='')

        self.cur_usagelogfile_tb.Text = get_current_usage_logfile()
        self.cur_usagelogfile_tb.IsReadOnly = True
        self.cur_usageserverurl_tb.Text = get_current_usage_serverurl()
        self.cur_usageserverurl_tb.IsReadOnly = True