def restore_defaults(self, p1=None, p2=None, *args): if len(args) == 0 or "exceptions" in args: self.exceptions.Text = pau.list2str(cdef.exceptions) if len(args) == 0 or "material" in args: self.material.Text = pau.list2str(cdef.material) if len(args) == 0 or "ignore_transparent" in args: self.ignore_transparent.IsChecked = bool(cdef.ignore_transparent)
def __init__(self, xaml_file_name): WPFWindow.__init__(self, xaml_file_name) try: self.temp_dir.Text = pau.list2str(my_config.temp_dir) except: self.restore_defaults(None, None, "temp_dir")
def __init__(self, xaml_file_name): WPFWindow.__init__(self, xaml_file_name) try: self.exceptions.Text = pau.list2str(my_config.exceptions) except: self.restore_defaults(None,None,"exceptions") try: self.material.Text = pau.list2str(my_config.material) except: self.restore_defaults(None,None,"material") try: self.ignore_transparent.IsChecked = bool(my_config.ignore_transparent) except: self.restore_defaults(None,None,"ignore_transparent")
def __init__(self, xaml_file_name): WPFWindow.__init__(self, xaml_file_name) try: self.limit.Text = str(my_config.limit) except: self.restore_defaults(None, None, "limit") try: self.exceptions.Text = pau.list2str(my_config.exceptions) except: self.restore_defaults(None, None, "exceptions")
def restore_defaults(self, p1=None, p2=None, *args): if len(args) == 0 or "limit" in args: self.limit.Text = str(cdef.limit) if len(args) == 0 or "exceptions" in args: self.exceptions.Text = pau.list2str(cdef.exceptions)
def restore_defaults(self, p1=None, p2=None, *args): if len(args) == 0 or "temp_dir" in args: self.temp_dir.Text = pau.list2str(cdef.temp_dir)