Re: [gtkmvc-users] Hi
Brought to you by:
cavada
From: <to...@ce...> - 2013-07-24 14:49:30
|
On 23.07.2013, at 16:49, Baskhuu Jacara <bas...@gm...> wrote: > Then I made login screen and successfully logged in my database. So now I want to switch POS main screen. > > How do I switch from first controller to second controller? Assuming your screens are windows, and only the first is instantiated before entering the mainloop: def on_login_button: if successful: v = MainView() m = MainModel() c = MainCtrl(v, m) v.show() self.view["window"].destroy() (off the top of my head; I'm on the move) |