Ejemplo n.º 1
0
    def draw(self, x=OUTERSPACE, y=TOPSPACE):
        """Draw the DRS"""
        self._handle(self.drs, self._draw_command, x, y)

        if self.master and not in_idle():
            self.master.mainloop()
        else:
            return self._visit(self.drs, x, y)
Ejemplo n.º 2
0
    def draw(self, x=OUTERSPACE, y=TOPSPACE):
        """Draw the DRS"""
        self._handle(self.drs, self._draw_command, x, y)

        if self.master and not in_idle():
            self.master.mainloop()
        else:
            return self._visit(self.drs, x, y)
Ejemplo n.º 3
0
 def mainloop(self, *args, **kwargs):
     """
     Enter the Tkinter mainloop.  This function must be called if
     this demo is created from a non-interactive program (e.g.
     from a secript); otherwise, the demo will close as soon as
     the script completes.
     """
     if in_idle(): return
     self._top.mainloop(*args, **kwargs)
Ejemplo n.º 4
0
 def mainloop(self, *args, **kwargs):
     """
     Enter the Tkinter mainloop.  This function must be called if
     this demo is created from a non-interactive program (e.g.
     from a secript); otherwise, the demo will close as soon as
     the script completes.
     """
     if in_idle(): return
     self._top.mainloop(*args, **kwargs)
Ejemplo n.º 5
0
 def mainloop(self, *args, **kwargs):
     if in_idle():
         return
     self.top.mainloop(*args, **kwargs)
Ejemplo n.º 6
0
 def mainloop(self, *args, **kwargs):
     if in_idle(): return
     self.top.mainloop(*args, **kwargs)