Exemplo n.º 1
0
    def __init__( self, *args, **kwargs ):
        tk.Tk.__init__( self, *args, **kwargs )
        self.protocol( "WM_DELETE_WINDOW", self.destroy )

        self.wm_title("bent file explorer")
        self.text_last_command = tk.StringVar()
        #print( self.winfo_screenwidth() )

        widget_file_explorer = Explorer( self )
        frame_bottom = tk.Frame( self )

        btn_quit = tk.Button( frame_bottom,
            text="QUIT",
            command=self.Quit )

        lbl_last_command = tk.Label( frame_bottom,
                textvariable = self.text_last_command )

        widget_file_explorer.grid( row=0, sticky='nesw' )
        #post grid row column configure - must be called after grid but should be specified by the widget itself, not here
        widget_file_explorer.pgrc_configure()
        frame_bottom.grid( row=1, sticky='nesw' )
        btn_quit.grid( column=2, sticky='e' )
        lbl_last_command.grid( column=0, sticky='w' )

        self.rowconfigure('0', weight=1)
        self.columnconfigure('all', weight=1)
        frame_bottom.columnconfigure('all', weight=1)