Ejemplo n.º 1
0
 def slotCreateNewVariable(self, arg=None):
     print arg
     text = ''
     if self.hasSelectedText():
         text = str(self.selectedText())
     win = NewTraitVariableDialog(self)
     if text:
         win.setRecordData(dict(value=text))
     win.connect(win, SIGNAL('okClicked()'),
                 self.slotCreateNewVariableSelected)
     win.show()
     self._dialog = win
Ejemplo n.º 2
0
 def slotCreateNewVariable(self, arg=None):
     print arg
     text = ''
     if self.hasSelectedText():
         text = str(self.selectedText())
     win = NewTraitVariableDialog(self)
     if text:
         win.setRecordData(dict(value=text))
     win.connect(win, SIGNAL('okClicked()'),
                 self.slotCreateNewVariableSelected)
     win.show()
     self._dialog = win
Ejemplo n.º 3
0
 def slotNew(self):
     win = NewTraitVariableDialog(self)
     win.show()
     win.connect(win, SIGNAL('okClicked()'), self.newVariableSelected)
     self._dialog = win
Ejemplo n.º 4
0
 def slotNew(self):
     win = NewTraitVariableDialog(self)
     win.show()
     win.connect(win, SIGNAL('okClicked()'), self.newVariableSelected)
     self._dialog = win