From 08cfd08e815e3194bf199b0d0573ea9a1465c9f4 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Jul 2018 02:32:24 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=A01=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2=20=D0=B3=D0=BB=D0=BE?= =?UTF-8?q?=D0=B1=D0=B2=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=80=D0=B5?= =?UTF-8?q?=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labs/lab1/lab1.py | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 labs/lab1/lab1.py diff --git a/labs/lab1/lab1.py b/labs/lab1/lab1.py deleted file mode 100644 index ba3dddf..0000000 --- a/labs/lab1/lab1.py +++ /dev/null @@ -1,45 +0,0 @@ -import wx - -class Ttheory(wx.Panel): - def __init__(self, parent): - wx.Panel.__init__(self, parent) - -class Labs(wx.Panel): - def __init__(self, parent): - wx.Panel.__init__(self, parent) - -class Results(wx.Panel): - def __init__(self, parent): - wx.Panel.__init__(self, parent) - - - -class MainFrame(wx.Frame): - def __init__(self): - wx.Frame.__init__(self, None, title="Simple Notebook Example") - - # Here we create a panel and a notebook on the panel - p = wx.Panel(self) - nb = wx.Notebook(p) - - # create the page windows as children of the notebook - page1 = Ttheory(nb) - page2 = Labs(nb) - page3 = Results(nb) - - # add the pages to the notebook with the label to show on the tab - nb.AddPage(page1, "Теория") - nb.AddPage(page2, "Задание") - nb.AddPage(page3, "Отчёт") - - # finally, put the notebook in a sizer for the panel to manage - # the layout - sizer = wx.BoxSizer() - sizer.Add(nb, 1, wx.EXPAND) - p.SetSizer(sizer) - - -if __name__ == "__main__": - app = wx.App() - MainFrame().Show() - app.MainLoop() \ No newline at end of file