def openFileDialog(self, title, mode, path): command = "File.openFileDialog(" + strlib.writeQuotedString(title) \ + ", \"" + mode + "\", \"" + path + "\")" self.putPipe(command) result = self.getResult().strip() return result
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);
def setLabel(self, gobj, str): command = "GLabel.setLabel(\"" + gobj.ID + "\", \"" + \ strlib.writeQuotedString(str) + "\")" self.putPipe(command)