Beispiel #1
0
    def pick_usagelog_folder(self, sender, args):
        """Callback method for picking destination folder for usage log files
        """
        new_path = pick_folder()

        if new_path:
            self.usagelogfile_tb.Text = os.path.normpath(new_path)
Beispiel #2
0
 def export_pat(self, sender, args):
     if self._verify_name():
         self.Hide()
         domain = self._pick_domain()
         export_dir = pick_folder()
         if domain and export_dir:
             self._create_pattern(domain,
                                  export_only=True,
                                  export_path=export_dir)
         self.Close()
Beispiel #3
0
    def addfolder(self, sender, args):
        new_path = pick_folder()

        if new_path:
            new_path = os.path.normpath(new_path)

        if self.extfolders_lb.ItemsSource:
            uniq_items = set(self.extfolders_lb.ItemsSource)
            uniq_items.add(new_path)
            self.extfolders_lb.ItemsSource = list(uniq_items)
        else:
            self.extfolders_lb.ItemsSource = [new_path]
Beispiel #4
0
    def addfolder(self, sender, args):
        """Callback method for adding extension folder to configs and list
        """
        new_path = pick_folder()

        if new_path:
            new_path = os.path.normpath(new_path)

        if self.extfolders_lb.ItemsSource:
            uniq_items = set(self.extfolders_lb.ItemsSource)
            uniq_items.add(new_path)
            self.extfolders_lb.ItemsSource = list(uniq_items)
        else:
            self.extfolders_lb.ItemsSource = [new_path]
Beispiel #5
0
 def load_log_file(self, sender, args):
     selected_path = pick_folder()
     if selected_path:
         self.cur_logfile_path = selected_path
Beispiel #6
0
    def pick_usagelog_folder(self, sender, args):
        new_path = pick_folder()

        if new_path:
            self.usagelogfile_tb.Text = os.path.normpath(new_path)