def __init__(self, win, commandrun = None):
        print "creating", self ####
        self.commandrun = commandrun

        PM_Dialog_with_example_widgets.__init__( self )
        GeneratorBaseClass.__init__( self, win)        
        return
Example #2
0
    def __init__(self, win, motor, glpane):

        self.jig = motor
        self.name = motor.name  # Adopt the motor's name as our name.

        RotaryMotorPropMgr.__init__(self, motor, glpane)
        GeneratorBaseClass.__init__(self, win)

        # Display Rotary Motor. Mark 2007-05-28.
        self.preview_btn_clicked()  # Kludge? Works though.
    def __init__(self, win):
        self.coords = zeros([30, 3], Float)
        self.prev_coords = zeros([3, 3], Float)

        self.peptide_mol = None
        self.length = 0
        self.prev_psi = 0

        PeptideGeneratorPropertyManager.__init__(self)
        GeneratorBaseClass.__init__(self, win)
    def __init__(self, win):
        self.coords = zeros([30,3], Float)
        self.prev_coords = zeros([3,3], Float)

        self.peptide_mol = None
        self.length = 0
        self.prev_psi = 0

        PeptideGeneratorPropertyManager.__init__(self)
        GeneratorBaseClass.__init__(self, win)
Example #5
0
    def __init__(self, win, motor, glpane):
        
        self.jig = motor
        self.name = motor.name # Adopt the motor's name as our name.
                
        RotaryMotorPropMgr.__init__(self, motor, glpane)
        GeneratorBaseClass.__init__(self, win)

        # Display Rotary Motor. Mark 2007-05-28.
        self.preview_btn_clicked() # Kludge? Works though. 
    def __init__(self, win, commandrun=None):

        self.win = win

        PM_Dialog.__init__(self, self.pmName, self.iconPath, self.title)
        GeneratorBaseClass.__init__(self, win)

        msg = "This Property Manager (PM) is used to display and/or test new \
               PM widgets avaiable in NanoEngineer-1's PM module."

        # This causes the "Message" box to be displayed as well.
        self.MessageGroupBox.insertHtmlMessage(msg, setAsDefault=False)
        return
Example #7
0
 def __init__(self, win, commandrun = None):
    
     self.win = win
             
     PM_Dialog.__init__( self, self.pmName, self.iconPath, self.title )
     GeneratorBaseClass.__init__( self, win)    
             
     msg = "This Property Manager (PM) is used to display and/or test new \
            PM widgets avaiable in NanoEngineer-1's PM module."
     
     # This causes the "Message" box to be displayed as well.
     self.MessageGroupBox.insertHtmlMessage( msg, setAsDefault = False )
     return
 def __init__(self, win, dialog, plugin_generator):
     # set up attributes which GeneratorBaseClass expects to find
     gen = self.gen = plugin_generator
     self.sponsor_keyword = gen.topic
     self.prefix = "%s-" % gen.what_we_generate  # GBC appends a serno and uses it for a history message;
     # if we want to use the same thing as the node name, we have to #####
     self.cmdname = "Insert %s" % gen.what_we_generate  # used for Undo history
     # tell the dialog to tell us when we need to generate things, and to call our meet_dialog method
     dialog.set_controller(self)
     # (It might be better if we could do this after GeneratorBaseClass.__init__,
     #  since if this gets button presses and calls build_struct right now, it won't work;
     #  but we can't, since GBC needs self.sponsor_btn which the above method's callback to here
     #  (meet_dialog) sets from the dialog.
     #  But the caller has normally not shown the dialog yet, so hopefully that can't happen.
     #  Maybe this can be cleaned up somehow, perhaps only by modifying GeneratorBaseClass.)
     GeneratorBaseClass.__init__(self, win)
     # set some attrs our own methods need
     self.paramnames = gen.paramnames_order
     return
 def __init__(self, win, dialog, plugin_generator):
     # set up attributes which GeneratorBaseClass expects to find
     gen = self.gen = plugin_generator
     self.sponsor_keyword = gen.topic
     self.prefix = "%s-" % gen.what_we_generate # GBC appends a serno and uses it for a history message;
         # if we want to use the same thing as the node name, we have to #####
     self.cmdname = "Insert %s" % gen.what_we_generate # used for Undo history
     # tell the dialog to tell us when we need to generate things, and to call our meet_dialog method
     dialog.set_controller(self)
         # (It might be better if we could do this after GeneratorBaseClass.__init__,
         #  since if this gets button presses and calls build_struct right now, it won't work;
         #  but we can't, since GBC needs self.sponsor_btn which the above method's callback to here
         #  (meet_dialog) sets from the dialog.
         #  But the caller has normally not shown the dialog yet, so hopefully that can't happen.
         #  Maybe this can be cleaned up somehow, perhaps only by modifying GeneratorBaseClass.)
     GeneratorBaseClass.__init__(self, win)
     # set some attrs our own methods need
     self.paramnames = gen.paramnames_order
     return
Example #10
0
 def __init__(self, win):
     NanotubeGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
 def __init__(self, win):
     DnaDuplexPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
     self._random_data = []
 def __init__(self, win):
     NanotubeGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
Example #13
0
 def __init__( self, win ):
     AtomGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
 def __init__(self, win):
     DnaGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
     self._random_data = []
Example #15
0
 def __init__(self, win):
     AtomGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
Example #16
0
 def __init__(self, win):
     GrapheneGeneratorPropertyManager.__init__(self)
     GeneratorBaseClass.__init__(self, win)
 def cancel_btn_clicked(self):
     #bruce 070814 bugfix -- renamed from abort_btn_clicked; new method name is needed by PM_Dialog.cancelButtonClicked
     print "cancel_btn_clicked, doing super then Done (kluge)", self
     GeneratorBaseClass.cancel_btn_clicked(self)
     self.commandrun.Done()
     pass
 def ok_btn_clicked(self):
     print "ok_btn_clicked, doing super then Done (kluge)", self
     GeneratorBaseClass.ok_btn_clicked(self)
     self.commandrun.Done() ###k both commandrun and Done -- and, kluge, instead GBC should call a done method in self.commandrun
     pass