Exemplo n.º 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
Exemplo n.º 2
0
    def openFileDialog(self, title, mode, path):
        command = "File.openFileDialog(" + strlib.writeQuotedString(title) \
           + ", \"" + mode + "\", \"" + path + "\")"

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