示例#1
0
	def openFileDialog(self, title, mode, path):
		command = "File.openFileDialog(" + strlib.writeQuotedString(title) \
					+ ", \"" + mode + "\", \"" + path + "\")"
		
		self.putPipe(command)
		result = self.getResult().strip()
		return result
    def openFileDialog(self, title, mode, path):
        command = "File.openFileDialog(" + strlib.writeQuotedString(title) \
           + ", \"" + mode + "\", \"" + path + "\")"

        self.putPipe(command)
        result = self.getResult().strip()
        return result
示例#3
0
	def setSelectedItem(self, gobj, item):
		command = "GChooser.setSelectedItem(\"" + gobj.ID + "\", " + \
					strlib.writeQuotedString(item) + ")"
		self.putPipe(command)
示例#4
0
	def setText(self, gobj, str):
		command = "GTextField.setText(\"" + gobj.ID + "\", " + \
					strlib.writeQuotedString(str) + ")"
		self.putPipe(command)
示例#5
0
	def createGCheckBox(self, gobj, label):
		Platform.SOURCE_TABLE[gobj.ID] = gobj
		command = "GCheckBox.create(\"" + gobj.ID + "\", " + \
					strlib.writeQuotedString(label) + ")"
		self.putPipe(command)
示例#6
0
	def setActionCommand(self, gobj, cmd):
		command = "GInteractor.setActionCommand(\"" + gobj.ID + "\", " + \
					strlib.writeQuotedString(cmd) + ")"
		self.putPipe(command)
示例#7
0
	def setWindowTitle(self, gw, title):
		command = "GWindow.setTitle(\"" + gw.gwd.ID + "\", " + \
			strlib.writeQuotedString(title) + ")"
		self.putPipe(command)
示例#8
0
	def setLabel(self, gobj, str):
		command = "GLabel.setLabel(\"" + gobj.ID + "\", \"" + \
					strlib.writeQuotedString(str) + "\")"
		self.putPipe(command);
 def setSelectedItem(self, gobj, item):
     command = "GChooser.setSelectedItem(\"" + gobj.ID + "\", " + \
        strlib.writeQuotedString(item) + ")"
     self.putPipe(command)
 def setText(self, gobj, str):
     command = "GTextField.setText(\"" + gobj.ID + "\", " + \
        strlib.writeQuotedString(str) + ")"
     self.putPipe(command)
 def createGCheckBox(self, gobj, label):
     Platform.SOURCE_TABLE[gobj.ID] = gobj
     command = "GCheckBox.create(\"" + gobj.ID + "\", " + \
        strlib.writeQuotedString(label) + ")"
     self.putPipe(command)
 def setActionCommand(self, gobj, cmd):
     command = "GInteractor.setActionCommand(\"" + gobj.ID + "\", " + \
        strlib.writeQuotedString(cmd) + ")"
     self.putPipe(command)
 def setWindowTitle(self, gw, title):
     command = "GWindow.setTitle(\"" + gw.gwd.ID + "\", " + \
      strlib.writeQuotedString(title) + ")"
     self.putPipe(command)
 def setLabel(self, gobj, str):
     command = "GLabel.setLabel(\"" + gobj.ID + "\", \"" + \
        strlib.writeQuotedString(str) + "\")"
     self.putPipe(command)