Logo Search packages:      
Sourcecode: mayavi version File versions  Download package

def MayaVi-1.4::Main::MayaViTkGUI::__init__ (   self,
  master,
  geometry = None 
)

Constructor for the main MayaVi GUI window.

Keyword Arguments:

master -- Toplevel parentwindow.        
geometry -- The geometry of the main window in standard X
fashion (WxH+X+Y).

Definition at line 888 of file Main.py.

00888                                               :
        """
        Constructor for the main MayaVi GUI window.
        
        Keyword Arguments:

        master -- Toplevel parentwindow.        
        geometry -- The geometry of the main window in standard X
        fashion (WxH+X+Y).

        """
        debug ("In MayaViTkGUI::__init__ ()")
        self.master = master
        self.root = Tkinter.Toplevel (master)        
        self.mayavi = MayaVi (self)
        self.doc_helper = DocHelper ()
        
        n = MayaVi.n_app
        self.root.title ("MayaVi Data Visualizer %d"%n)
        self.root.protocol ("WM_DELETE_WINDOW", self.quit)
        if geometry:
            self.root.geometry(geometry)
        self.root.minsize (650, 600)
        #self.root.geometry ("600x600+0+0")
        master_f = Tkinter.Frame (self.root, relief='sunken', bd=2)
        master_f.pack (side='top', fill='both', expand=1)

        self.ctrl_frame = Tkinter.Frame (master_f, relief='sunken', bd=2)
        self.ctrl_frame.pack (side='left', fill='y', expand=0)

        self.renwin_frame = Tkinter.Frame (master_f)
        self.renwin_frame.pack (side='left', fill='both', expand=1)
        self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame)
        self.renwin.Render ()

        self.status_frame = Tkinter.Frame (self.root, relief='sunken', bd=2,
                                           bg='white', height=20)
        self.status_frame.pack (side='bottom', fill='x', expand=0)
        
        Common.state.register (self.status_frame)
        Common.state.register (self.root)
        
        self.module_var = Tkinter.StringVar ()
        self.filter_var = Tkinter.StringVar ()

        self.vrml_var = Tkinter.StringVar ()

        # for animation. -1 == unset, 0 == stopped, 1 == running
        self.anim = -1

        # 3D Studio files.
        self.tds_var = Tkinter.StringVar ()

        self.full_scr_var = Tkinter.IntVar ()
        self.full_scr_var.set (1)

        self.make_menus ()
        self.make_data_list ()

    def __del__ (self):


Generated by  Doxygen 1.6.0   Back to index