def __init__(self, database, server_name, project_id, subject_id, scan_id): Observable.__init__(self) self.scan_id = scan_id self.subject_id = subject_id self.server_name = server_name self.database = database self.project_id = project_id self.cached_num_local_files = None self.cached_num_resource_files = None self.status = ProgressStatus.undefined self._compute_cache_values_if_undefined()
def __init__(self, parent, model, index, status_model): Frame.__init__(self, parent) Observable.__init__(self) self.model = model self.index = index self.status_model = status_model self.var = IntVar() self.var.set(model.get_checked()) self.progress_var = IntVar() self.progress_status = ProgressStatus.undefined self.check_button = Checkbutton(self, text=model.get_label, variable=self.var, command=self._check_changed) self.progress_bar = Progressbar(self, orient='horizontal', mode='indeterminate', variable=self.progress_var) self.check_button.pack(side=LEFT, fill="both", expand=True) self.model.add_listener(self._model_changed)
def __init__(self, parent, model): Frame.__init__(self, parent) Observable.__init__(self) self._model = model # Create variables and initialise to zero self._checked_var = IntVar() self._progress_var = IntVar() self._checked_var.set(0) self._progress_var.set(0) self._current_gui_checked_state = CheckStatus.undefined self._current_gui_progress_state = ProgressStatus.undefined self.check_button = Checkbutton(self, text=model.get_label(), variable=self._checked_var, command=self._user_check_changed) self.progress_bar = Progressbar(self, orient='horizontal', mode='indeterminate', variable=self._progress_var) self.check_button.pack(side=LEFT, fill="both", expand=True) self._update() self._model.add_listener(self._model_changed)
def __init__(self, scan, subject_label, model): Observable.__init__(self) self.scan = scan self.label = subject_label self.model = model
def __init__(self): Observable.__init__(self) self._selected_items = []
def __init__(self): Observable.__init__(self) self._values = [] self._labels = []
def __init__(self, label): Observable.__init__(self) self._label = label self._progress_status = ProgressStatus.undefined self._check_status = False
def __init__(self): Observable.__init__(self) self._list_items = []