Example #1
0
 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()
Example #2
0
 def gwindow_request_focus(self, gw):
     command = pformat(GWindow_requestFocus, id=id(gw))
     self.put_pipe(command)
Example #3
0
 def gwindow_close(self, gw):
     command = pformat(GWindow_close, id=id(gw))
     self.put_pipe(command)
Example #4
0
 def gwindow_delete(self, gw):
     del Platform.WINDOW_TABLE[id(gw)]
     command = pformat(GWindow_delete, id=id(gw))
     self.put_pipe(command)
Example #5
0
 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)
Example #6
0
 def createGCompound(self, gobj):
     self.put_pipe(pformat(GCompound_create, id=id(gobj)))
Example #7
0
 def gtimer_stop(self, timer):
     command = pformat(GTimer_stop, id=id(timer))
     self.put_pipe(command)
Example #8
0
 def gtimer_pause(self, millis):
     command = pformat(GTimer_pause, millis=millis)
     self.put_pipe(command)
     self.get_status()  # TODO: wtf
Example #9
0
 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)
Example #10
0
 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)
Example #11
0
 def gwindow_clear_canvas(self, gw, exit_on_close):
     command = pformat(GWindow_clearCanvas, id=id(gw))
     self.put_pipe(command)
Example #12
0
 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)