def reject(self): """ Slot for the 'Cancel' button """ self.jig.attr_update(self.jig_attrs) # Restore attributes of the jig. self.glpane.gl_update() QDialog.reject(self)
def reject(self): """The slot method for the 'Cancel' button.""" QDialog.reject(self) self.gamessJig.attr_update(self.jig_attrs) # Restore attributes of the jig. # self.gamessJig.color = self.gamessJig.normcolor = self.original_normcolor self.gamessJig.cancelled = True self.glpane.gl_update()
def reject(self): """ If elements modified or external file loaded, restore current pref to original since our dialog is reused """ if self.isElementModified or self.fileName: self.elemTable.resetElemTable(self.oldTable) self._updateModelDisplay() QDialog.reject(self)
def reject(self): '''Slot for the 'Cancel' button ''' self.jig.attr_update(self.jig_attrs) # Restore attributes of the jig. # Before exit the dialog, turn off the highlighting and selection self.jig.highlightChecked = False self.jig.pickSelected(False) self.glpane.gl_update() QDialog.reject(self)
def processDone(self): #self.fwThread.stop() self.jobTimer.stop() if self.process.normalExit(): print "The process is done!" QDialog.accept(self.progressDialog) else: print "The process is cancelled!" QDialog.reject(self.progressDialog) return
def cancel_btn_clicked(self): """ Slot for Cancel button """ if env.debug(): print "cancel" # restore values we grabbed on entry. for key,val in zip((endRMS_prefs_key, endMax_prefs_key, cutoverRMS_prefs_key, cutoverMax_prefs_key), self.previousParams): env.prefs[key] = val self.update_widgets(update_seltype = False) #k might not matter since we're about to hide it, but can't hurt QDialog.reject(self) return
def reject(self): '''Slot for the 'Cancel' button ''' self.chunk.color = self.original_color self.chunk.setcolor(self.chunk.color) QDialog.reject(self) # A hidden chunk has no glpane attr. This fixes bug 1137. Mark 051126. if self.chunk.hidden: return self.glpane.gl_update()
def accept(self): if self.key_ledit.text().isEmpty() or unicode( self.key_ledit.text()).isspace(): errmsg = u"Key name field cannot be empty!" return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) if len(self.key_ledit.text()) < 4: errmsg = u"Key name must be at <i>least</i> 4 characters long!" return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) if uStrCmp(self.key_ledit.text(), self.parent.listy.currentItem().text()): # Same exact name ... do nothing. return QDialog.reject(self) for k in self.parent.plugin_keys.keys(): if (uStrCmp(self.key_ledit.text(), k, True) and not uStrCmp(k, self.parent.listy.currentItem().text(), True)): errmsg = u"The key name <strong>{0}</strong> is already being used.".format( self.key_ledit.text()) return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) QDialog.accept(self)
def accept(self): if self.key_ledit.text().isEmpty() or unicode(self.key_ledit.text()).isspace(): errmsg = u"Key name field cannot be empty!" return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) if len(self.key_ledit.text()) < 4: errmsg = u"Key name must be at <i>least</i> 4 characters long!" return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) if uStrCmp(self.key_ledit.text(), self.parent.listy.currentItem().text()): # Same exact name ... do nothing. return QDialog.reject(self) for k in self.parent.plugin_keys.keys(): if (uStrCmp(self.key_ledit.text(), k, True) and not uStrCmp(k, self.parent.listy.currentItem().text(), True)): errmsg = u"The key name <strong>{0}</strong> is already being used.".format(self.key_ledit.text()) return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), _(errmsg), show=True, show_copy_button=False) QDialog.accept(self)
def reject(self): self.select_none() QDialog.reject(self)
def reject(self): QDialog.reject(self)
def reject(self): '''Slot for the 'Cancel' button ''' self.grid_plane.attr_update(self.jig_attrs) # Restore attributes of the jig. self.glpane.gl_update() QDialog.reject(self)
def reject(self): QDialog.reject(self) self.comment = None self.comment_textedit.setPlainText("") # Clear text.
def reject(self): gprefs['metadata_single_gui_geom'] = bytearray(self.saveGeometry()) self.identify_widget.cancel() self.covers_widget.cancel() return QDialog.reject(self)
def reject(self): self.canceled = True QDialog.reject(self)
def reject(self): self.save_state() QDialog.reject(self)
def reject(self): self.stats.remove(self.location) QDialog.reject(self)
def reject(self): self.cleanup() QDialog.reject(self)
def reject(self): self.rejected = True self.restorer.progress_callback = lambda x, y: x QDialog.reject(self)
def reject(self): '''Slot for the 'Cancel' button ''' self.grid_plane.attr_update( self.jig_attrs) # Restore attributes of the jig. self.glpane.gl_update() QDialog.reject(self)
def reject(self): self.save_geometry() return QDialog.reject(self)
def reject(self): self.save_geometry() QDialog.reject(self)
def reject(self): self.rejected = True QDialog.reject(self)
def reject(self): self.save_geometry() self.select_none() QDialog.reject(self)
def reject(self): tprefs.set(self.name + "-geometry", bytearray(self.saveGeometry())) if hasattr(self, "splitter"): tprefs.set(self.name + "-splitter-state", bytearray(self.splitter.saveState())) QDialog.reject(self)
def reject(self): if not self.cancelable: return QDialog.reject(self)
def reject(self): self.covers_widget.cancel() return QDialog.reject(self)
def reject(self): self.save_state() return QDialog.reject(self)
def reject(self): self.rejected = True return QDialog.reject(self)
def reject(self): tprefs.set(self.name + '-geometry', bytearray(self.saveGeometry())) if hasattr(self, 'splitter'): tprefs.set(self.name + '-splitter-state', bytearray(self.splitter.saveState())) QDialog.reject(self)
def reject(self): gprefs.set('single-cover-fetch-dialog-geometry', bytearray(self.saveGeometry())) self.covers_widget.cancel() return QDialog.reject(self)
def reject(self): tprefs.set('preferences_geom', bytearray(self.saveGeometry())) QDialog.reject(self)
def reject(self): self.identify_widget.cancel() self.covers_widget.cancel() return QDialog.reject(self)
def reject(self): self.close() QDialog.reject(self)
def reject(self): self._close() QDialog.reject(self)
def reject(self): """ The slot method for the "Cancel" button. """ QDialog.reject(self)