Ignore:
Timestamp:
08/03/10 11:41:13 (14 years ago)
Author:
Malte Marquarding
Message:

Tidy up of imports (now imported from asap.). Also fixed some whitespace/tab issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotgui.py

    r1819 r1826  
    1717
    1818    def __init__(self, rows=1, cols=0, title='', size=None, buffering=False):
    19         """
    20         Create a new instance of the ASAPlot plotting class.
     19        """
     20        Create a new instance of the ASAPlot plotting class.
    2121
    22         If rows < 1 then a separate call to set_panels() is required to define
    23         the panel layout; refer to the doctext for set_panels().
    24         """
     22        If rows < 1 then a separate call to set_panels() is required to define
     23        the panel layout; refer to the doctext for set_panels().
     24        """
    2525        v = vars()
    2626        del v['self']
     
    4949
    5050    def map(self):
    51         """
    52         Reveal the ASAPlot graphics window and bring it to the top of the
    53         window stack.
    54         """
    55         self.window.wm_deiconify()
    56         self.window.lift()
     51        """
     52        Reveal the ASAPlot graphics window and bring it to the top of the
     53        window stack.
     54        """
     55        self.window.wm_deiconify()
     56        self.window.lift()
    5757
    5858    def quit(self):
    59         """
    60         Destroy the ASAPlot graphics window.
    61         """
    62         self.window.destroy()
     59        """
     60        Destroy the ASAPlot graphics window.
     61        """
     62        self.window.destroy()
    6363
    6464    def show(self, hardrefresh=True):
    65         """
    66         Show graphics dependent on the current buffering state.
    67         """
    68         if not self.buffering:
     65        """
     66        Show graphics dependent on the current buffering state.
     67        """
     68        if not self.buffering:
    6969            if hardrefresh:
    7070                asaplotbase.show(self)
    71             self.window.wm_deiconify()
    72             self.canvas.show()
     71            self.window.wm_deiconify()
     72            self.canvas.show()
    7373
    7474    def terminate(self):
    75         """
    76         Clear the figure.
    77         """
    78         self.window.destroy()
     75        """
     76        Clear the figure.
     77        """
     78        self.window.destroy()
    7979
    8080    def unmap(self):
    81         """
    82         Hide the ASAPlot graphics window.
    83         """
    84         self.window.wm_withdraw()
     81        """
     82        Hide the ASAPlot graphics window.
     83        """
     84        self.window.wm_withdraw()
Note: See TracChangeset for help on using the changeset viewer.