import wx
from loggin import loggin

class MyFrame ( wx.Frame ):

    def __init__( self, parent ):
        wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Page de connexion", pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

        self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
#debut contenu
        BoxSizer0 = wx.BoxSizer( wx.VERTICAL )
        
        
        
        
        # Add login panel
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        
        # Add notebook panel and its pages
        self.nb = wx.Notebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 )
        self.nb_subpanel1 = wx.Panel( self.nb, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
        self.nb.AddPage( self.nb_subpanel1, u"Gestion laboratoire", False )

        BoxSizer0.Add( self.nb, 1, wx.EXPAND |wx.ALL, 0 )

        # Adds a logout button
        self.logout_button = wx.Button( self, wx.ID_ANY, u"Logout", wx.DefaultPosition, wx.DefaultSize, 0 )
        BoxSizer0.Add( self.logout_button, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

        # Hide nb and logout button
        self.nb.Hide()
        self.logout_button.Hide()


        self.SetSizer( BoxSizer0 )
        self.Layout()

        self.Centre( wx.BOTH )
        self.Show()

        # Connect Events
        self.logout_button.Bind( wx.EVT_BUTTON, self.on_logout )

    # Virtual event handlers, override them in your derived class
    def on_logout( self, event ):
        self.nb.Hide()
        self.logout_button.Hide()
        self.login_panel.Show()
        self.Layout()

if __name__ == "__main__":
    app = wx.App()
    MyFrame(None)
    app.MainLoop()


0c6192e6de873c44c78a133ea45de8804fc9d8d8
<mask token>


class MyFrame(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=
            u'Page de connexion', pos=wx.DefaultPosition, size=wx.Size(800,
            600), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)
        self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize)
        BoxSizer0 = wx.BoxSizer(wx.VERTICAL)
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        self.nb = wx.Notebook(self, wx.ID_ANY, wx.DefaultPosition, wx.
            DefaultSize, 0)
        self.nb_subpanel1 = wx.Panel(self.nb, wx.ID_ANY, wx.DefaultPosition,
            wx.DefaultSize, wx.TAB_TRAVERSAL)
        self.nb.AddPage(self.nb_subpanel1, u'Gestion laboratoire', False)
        BoxSizer0.Add(self.nb, 1, wx.EXPAND | wx.ALL, 0)
        self.logout_button = wx.Button(self, wx.ID_ANY, u'Logout', wx.
            DefaultPosition, wx.DefaultSize, 0)
        BoxSizer0.Add(self.logout_button, 0, wx.ALIGN_CENTER | wx.ALL, 5)
        self.nb.Hide()
        self.logout_button.Hide()
        self.SetSizer(BoxSizer0)
        self.Layout()
        self.Centre(wx.BOTH)
        self.Show()
        self.logout_button.Bind(wx.EVT_BUTTON, self.on_logout)
    <mask token>


<mask token>

<mask token>


class MyFrame(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=
            u'Page de connexion', pos=wx.DefaultPosition, size=wx.Size(800,
            600), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)
        self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize)
        BoxSizer0 = wx.BoxSizer(wx.VERTICAL)
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        self.nb = wx.Notebook(self, wx.ID_ANY, wx.DefaultPosition, wx.
            DefaultSize, 0)
        self.nb_subpanel1 = wx.Panel(self.nb, wx.ID_ANY, wx.DefaultPosition,
            wx.DefaultSize, wx.TAB_TRAVERSAL)
        self.nb.AddPage(self.nb_subpanel1, u'Gestion laboratoire', False)
        BoxSizer0.Add(self.nb, 1, wx.EXPAND | wx.ALL, 0)
        self.logout_button = wx.Button(self, wx.ID_ANY, u'Logout', wx.
            DefaultPosition, wx.DefaultSize, 0)
        BoxSizer0.Add(self.logout_button, 0, wx.ALIGN_CENTER | wx.ALL, 5)
        self.nb.Hide()
        self.logout_button.Hide()
        self.SetSizer(BoxSizer0)
        self.Layout()
        self.Centre(wx.BOTH)
        self.Show()
        self.logout_button.Bind(wx.EVT_BUTTON, self.on_logout)

    def on_logout(self, event):
        self.nb.Hide()
        self.logout_button.Hide()
        self.login_panel.Show()
        self.Layout()


<mask token>

<mask token>


class MyFrame(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=
            u'Page de connexion', pos=wx.DefaultPosition, size=wx.Size(800,
            600), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)
        self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize)
        BoxSizer0 = wx.BoxSizer(wx.VERTICAL)
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        self.nb = wx.Notebook(self, wx.ID_ANY, wx.DefaultPosition, wx.
            DefaultSize, 0)
        self.nb_subpanel1 = wx.Panel(self.nb, wx.ID_ANY, wx.DefaultPosition,
            wx.DefaultSize, wx.TAB_TRAVERSAL)
        self.nb.AddPage(self.nb_subpanel1, u'Gestion laboratoire', False)
        BoxSizer0.Add(self.nb, 1, wx.EXPAND | wx.ALL, 0)
        self.logout_button = wx.Button(self, wx.ID_ANY, u'Logout', wx.
            DefaultPosition, wx.DefaultSize, 0)
        BoxSizer0.Add(self.logout_button, 0, wx.ALIGN_CENTER | wx.ALL, 5)
        self.nb.Hide()
        self.logout_button.Hide()
        self.SetSizer(BoxSizer0)
        self.Layout()
        self.Centre(wx.BOTH)
        self.Show()
        self.logout_button.Bind(wx.EVT_BUTTON, self.on_logout)

    def on_logout(self, event):
        self.nb.Hide()
        self.logout_button.Hide()
        self.login_panel.Show()
        self.Layout()


if __name__ == '__main__':
    app = wx.App()
    MyFrame(None)
    app.MainLoop()

import wx
from loggin import loggin


class MyFrame(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=
            u'Page de connexion', pos=wx.DefaultPosition, size=wx.Size(800,
            600), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)
        self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize)
        BoxSizer0 = wx.BoxSizer(wx.VERTICAL)
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        self.nb = wx.Notebook(self, wx.ID_ANY, wx.DefaultPosition, wx.
            DefaultSize, 0)
        self.nb_subpanel1 = wx.Panel(self.nb, wx.ID_ANY, wx.DefaultPosition,
            wx.DefaultSize, wx.TAB_TRAVERSAL)
        self.nb.AddPage(self.nb_subpanel1, u'Gestion laboratoire', False)
        BoxSizer0.Add(self.nb, 1, wx.EXPAND | wx.ALL, 0)
        self.logout_button = wx.Button(self, wx.ID_ANY, u'Logout', wx.
            DefaultPosition, wx.DefaultSize, 0)
        BoxSizer0.Add(self.logout_button, 0, wx.ALIGN_CENTER | wx.ALL, 5)
        self.nb.Hide()
        self.logout_button.Hide()
        self.SetSizer(BoxSizer0)
        self.Layout()
        self.Centre(wx.BOTH)
        self.Show()
        self.logout_button.Bind(wx.EVT_BUTTON, self.on_logout)

    def on_logout(self, event):
        self.nb.Hide()
        self.logout_button.Hide()
        self.login_panel.Show()
        self.Layout()


if __name__ == '__main__':
    app = wx.App()
    MyFrame(None)
    app.MainLoop()

import wx
from loggin import loggin

class MyFrame ( wx.Frame ):

    def __init__( self, parent ):
        wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Page de connexion", pos = wx.DefaultPosition, size = wx.Size( 800,600 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

        self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
#debut contenu
        BoxSizer0 = wx.BoxSizer( wx.VERTICAL )
        
        
        
        
        # Add login panel
        self.login_panel = loggin(self)
        BoxSizer0.Add(self.login_panel, 1, wx.EXPAND | wx.ALL, 0)
        
        # Add notebook panel and its pages
        self.nb = wx.Notebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, 0 )
        self.nb_subpanel1 = wx.Panel( self.nb, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
        self.nb.AddPage( self.nb_subpanel1, u"Gestion laboratoire", False )

        BoxSizer0.Add( self.nb, 1, wx.EXPAND |wx.ALL, 0 )

        # Adds a logout button
        self.logout_button = wx.Button( self, wx.ID_ANY, u"Logout", wx.DefaultPosition, wx.DefaultSize, 0 )
        BoxSizer0.Add( self.logout_button, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

        # Hide nb and logout button
        self.nb.Hide()
        self.logout_button.Hide()


        self.SetSizer( BoxSizer0 )
        self.Layout()

        self.Centre( wx.BOTH )
        self.Show()

        # Connect Events
        self.logout_button.Bind( wx.EVT_BUTTON, self.on_logout )

    # Virtual event handlers, override them in your derived class
    def on_logout( self, event ):
        self.nb.Hide()
        self.logout_button.Hide()
        self.login_panel.Show()
        self.Layout()

if __name__ == "__main__":
    app = wx.App()
    MyFrame(None)
    app.MainLoop()

