def file_open_file_dialog(self, title, mode, path): # TODO: BUGFIX for trailing slashes command = pformat(File_openFileDialog, title=title, mode=mode, path=path) self.put_pipe(command) return self.get_result()
def gwindow_request_focus(self, gw): command = pformat(GWindow_requestFocus, id=id(gw)) self.put_pipe(command)
def gwindow_close(self, gw): command = pformat(GWindow_close, id=id(gw)) self.put_pipe(command)
def gwindow_delete(self, gw): del Platform.WINDOW_TABLE[id(gw)] command = pformat(GWindow_delete, id=id(gw)) self.put_pipe(command)
def gwindow_add_to_region(self, gw, gobj, region): command = pformat(GWindow_addToRegion, id=id(gw), gobj_id=id(gobj), region=region) self.put_pipe(command)
def createGCompound(self, gobj): self.put_pipe(pformat(GCompound_create, id=id(gobj)))
def gtimer_stop(self, timer): command = pformat(GTimer_stop, id=id(timer)) self.put_pipe(command)
def gtimer_pause(self, millis): command = pformat(GTimer_pause, millis=millis) self.put_pipe(command) self.get_status() # TODO: wtf
def gtimer_delete(self, timer): del Platform.TIMER_TABLE[id(timer)] # TODO: why? # print('Here') command = pformat(GTimer_delete, id=id(timer)) # print('Here 2') self.put_pipe(command)
def gtimer_constructor(self, timer, millis): Platform.TIMER_TABLE[id(timer)] = timer # TODO: why? command = pformat(GTimer_constructor, id=id(timer), millis=millis) self.put_pipe(command)
def gwindow_clear_canvas(self, gw, exit_on_close): command = pformat(GWindow_clearCanvas, id=id(gw)) self.put_pipe(command)
def gwindow_set_exit_on_close(self, gw, exit_on_close): command = pformat(GWindow_setExitOnClose, id=id(gw), value=exit_on_close) self.put_pipe(command)