def init_gui(self): """ Initialize GUI for this mode """ previousCommand = self.commandSequencer.prevMode if previousCommand.commandName == 'BUILD_DNA': try: self.flyoutToolbar = previousCommand.flyoutToolbar #Need a better way to deal with changing state of the #corresponding action in the flyout toolbar. To be revised #during command toolbar cleanup self.flyoutToolbar.breakStrandAction.setChecked(True) except AttributeError: self.flyoutToolbar = None if self.propMgr is None: self.propMgr = OrderDna_PropertyManager(self) #@bug BUG: following is a workaround for bug 2494. #This bug is mitigated as propMgr object no longer gets recreated #for modes -- niand 2007-08-29 changes.keep_forever(self.propMgr) self.propMgr.show()