diff --git a/__pycache__/main.cpython-37.pyc b/__pycache__/main.cpython-37.pyc new file mode 100644 index 0000000..795ac98 Binary files /dev/null and b/__pycache__/main.cpython-37.pyc differ diff --git a/gui/MainSettings.py b/gui/MainSettings.py index ff76e95..0b98004 100644 --- a/gui/MainSettings.py +++ b/gui/MainSettings.py @@ -4,8 +4,8 @@ import wx class MainPanel(wx.Panel): def __init__(self, parent): - wx.Panel.__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(300, 70), - style=wx.TAB_TRAVERSAL) + wx.Panel.__init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(200, 70)) + bSizer1 = wx.BoxSizer(wx.VERTICAL) @@ -50,10 +50,9 @@ class MainPanel(wx.Panel): class MainFrame(wx.Frame): def __init__(self, parent): - wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, - size=wx.Size(300, 70), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL) + wx.Frame.__init__(self, None, -1, 'Title', style= wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX) - self.SetSizeHints(wx.DefaultSize, wx.DefaultSize) + self.SetSizeHints(70, 70) self.Centre(wx.BOTH) panel = MainPanel(self) diff --git a/gui/__pycache__/MainSettings.cpython-37.pyc b/gui/__pycache__/MainSettings.cpython-37.pyc new file mode 100644 index 0000000..4fedd6f Binary files /dev/null and b/gui/__pycache__/MainSettings.cpython-37.pyc differ diff --git a/gui/__pycache__/mainpage.cpython-37.pyc b/gui/__pycache__/mainpage.cpython-37.pyc new file mode 100644 index 0000000..08c7e16 Binary files /dev/null and b/gui/__pycache__/mainpage.cpython-37.pyc differ diff --git a/gui/__pycache__/second_page.cpython-37.pyc b/gui/__pycache__/second_page.cpython-37.pyc new file mode 100644 index 0000000..a4cf3e3 Binary files /dev/null and b/gui/__pycache__/second_page.cpython-37.pyc differ diff --git a/gui/labs.py b/gui/labs.py new file mode 100644 index 0000000..d697b1e --- /dev/null +++ b/gui/labs.py @@ -0,0 +1,71 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + + +import wx + +class SettingsMainFrame(wx.Frame): + def __init__(self, *args, **kwds): + + wx.Frame.__init__(self, None, -1, 'Title', style= wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX) + self.SetSize((252, 143)) + self.SettingsFramePanel = wx.Panel(self, wx.ID_ANY) + self.btn_add_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"Добавить лабораторную работу") + self.btn_edit_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"Редактировать лабораторную работу") + self.btn_del_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"Удалить лабораторную работу") + + self.__set_properties() + self.__do_layout() + + self.Bind(wx.EVT_BUTTON, self.add_lab, self.btn_add_lab) + self.Bind(wx.EVT_BUTTON, self.edit_lab, self.btn_edit_lab) + self.Bind(wx.EVT_BUTTON, self.remove_lab, self.btn_del_lab) + + + def __set_properties(self): + + self.SetTitle("frame") + self.btn_add_lab.SetMinSize((250, 26)) + self.btn_edit_lab.SetMinSize((250, 37)) + self.btn_del_lab.SetMinSize((250, 26)) + + + def __do_layout(self): + + sizer_1 = wx.BoxSizer(wx.VERTICAL) + sizer_2 = wx.BoxSizer(wx.VERTICAL) + sizer_2.Add(self.btn_add_lab, 0, 0, 0) + sizer_2.Add(self.btn_edit_lab, 0, 0, 0) + sizer_2.Add(self.btn_del_lab, 0, 0, 0) + self.SettingsFramePanel.SetSizer(sizer_2) + sizer_1.Add(self.SettingsFramePanel, 1, wx.EXPAND, 0) + self.SetSizer(sizer_1) + self.Layout() + + + def add_lab(self, event): + print("Event handler 'add_lab' not implemented!") + event.Skip() + + def edit_lab(self, event): + print("Event handler 'edit_lab' not implemented!") + event.Skip() + + def remove_lab(self, event): + print("Event handler 'remove_lab' not implemented!") + event.Skip() + + + +class MyApp(wx.App): + def OnInit(self): + self.frame = SettingsMainFrame(None, wx.ID_ANY, "") + self.SetTopWindow(self.frame) + self.frame.Show() + return True + + + +if __name__ == "__main__": + app = MyApp(0) + app.MainLoop() diff --git a/labs/lab1/__pycache__/lr1_main.cpython-37.pyc b/labs/lab1/__pycache__/lr1_main.cpython-37.pyc new file mode 100644 index 0000000..1d82137 Binary files /dev/null and b/labs/lab1/__pycache__/lr1_main.cpython-37.pyc differ diff --git a/src_gui/#~wxg.autosave~labs.wxg# b/src_gui/#~wxg.autosave~labs.wxg# new file mode 100644 index 0000000..53482d4 --- /dev/null +++ b/src_gui/#~wxg.autosave~labs.wxg# @@ -0,0 +1,57 @@ + + + + + + 252, 116 + frame + + 1 + + wxVERTICAL + + + 0 + wxEXPAND + + + wxVERTICAL + + + 0 + + + add_lab + + 250, 26 + + + + + + 0 + + + edit_lab + + 250, 37 + + + + + + 0 + + + remove_lab + + 250, 26 + + + + + + + + + diff --git a/src_gui/MainSettings.fbp b/src_gui/MainSettings.fbp new file mode 100644 index 0000000..0391bfa --- /dev/null +++ b/src_gui/MainSettings.fbp @@ -0,0 +1,483 @@ + + + + + + C++ + 1 + source_name + 0 + 0 + res + UTF-8 + connect + + 1000 + none + + 0 + Settings + + . + + 1 + 1 + 1 + 1 + UI + 0 + 0 + + 0 + wxAUI_MGR_DEFAULT + + wxBOTH + + 1 + 1 + impl_virtual + + + + 0 + wxID_ANY + + + MainFrame + + 300,70 + wxDEFAULT_FRAME_STYLE + ; forward_declare + + + + + wxTAB_TRAVERSAL + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + wxAUI_MGR_DEFAULT + + + 1 + 1 + impl_virtual + + + 0 + wxID_ANY + + + MainPanel + + 300,70 + ; forward_declare + + + + wxTAB_TRAVERSAL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bSizer1 + wxVERTICAL + none + + 5 + wxEXPAND + 1 + + 3 + wxBOTH + + + 0 + + fgSizer1 + wxFLEX_GROWMODE_SPECIFIED + none + 0 + 0 + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + Введите пароль + 0 + + 0 + + + 0 + + 1 + m_staticText2 + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxALL|wxALIGN_CENTER_HORIZONTAL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + + + 0 + + 1 + m_textCtrl2 + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + wxALL + 0 + + 1 + 1 + 1 + 1 + + + + + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 1 + + 1 + + + 0 + 0 + wxID_ANY + OK + + 0 + + 0 + + + 0 + + 1 + btn_ok + 1 + + + protected + 1 + + + + Resizable + 1 + 60,-1 + + ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src_gui/labs.py b/src_gui/labs.py new file mode 100644 index 0000000..1a3e9b6 --- /dev/null +++ b/src_gui/labs.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- +# +# generated by wxGlade 0.8.3 on Fri Aug 17 15:44:00 2018 +# + +import wx + +# begin wxGlade: dependencies +# end wxGlade + +# begin wxGlade: extracode +# end wxGlade + + +class SettingsMainFrame(wx.Frame): + def __init__(self, *args, **kwds): + # begin wxGlade: SettingsMainFrame.__init__ + kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE + wx.Frame.__init__(self, *args, **kwds) + self.SetSize((252, 143)) + self.SettingsFramePanel = wx.Panel(self, wx.ID_ANY) + self.btn_add_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443") + self.btn_edit_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443\n") + self.btn_del_lab = wx.Button(self.SettingsFramePanel, wx.ID_ANY, u"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443") + + self.__set_properties() + self.__do_layout() + + self.Bind(wx.EVT_BUTTON, self.add_lab, self.btn_add_lab) + self.Bind(wx.EVT_BUTTON, self.edit_lab, self.btn_edit_lab) + self.Bind(wx.EVT_BUTTON, self.remove_lab, self.btn_del_lab) + # end wxGlade + + def __set_properties(self): + # begin wxGlade: SettingsMainFrame.__set_properties + self.SetTitle("frame") + self.btn_add_lab.SetMinSize((250, 26)) + self.btn_edit_lab.SetMinSize((250, 37)) + self.btn_del_lab.SetMinSize((250, 26)) + # end wxGlade + + def __do_layout(self): + # begin wxGlade: SettingsMainFrame.__do_layout + sizer_1 = wx.BoxSizer(wx.VERTICAL) + sizer_2 = wx.BoxSizer(wx.VERTICAL) + sizer_2.Add(self.btn_add_lab, 0, 0, 0) + sizer_2.Add(self.btn_edit_lab, 0, 0, 0) + sizer_2.Add(self.btn_del_lab, 0, 0, 0) + self.SettingsFramePanel.SetSizer(sizer_2) + sizer_1.Add(self.SettingsFramePanel, 1, wx.EXPAND, 0) + self.SetSizer(sizer_1) + self.Layout() + # end wxGlade + + def add_lab(self, event): # wxGlade: SettingsMainFrame. + print("Event handler 'add_lab' not implemented!") + event.Skip() + + def edit_lab(self, event): # wxGlade: SettingsMainFrame. + print("Event handler 'edit_lab' not implemented!") + event.Skip() + + def remove_lab(self, event): # wxGlade: SettingsMainFrame. + print("Event handler 'remove_lab' not implemented!") + event.Skip() + +# end of class SettingsMainFrame + +class MyApp(wx.App): + def OnInit(self): + self.frame = SettingsMainFrame(None, wx.ID_ANY, "") + self.SetTopWindow(self.frame) + self.frame.Show() + return True + +# end of class MyApp + +if __name__ == "__main__": + app = MyApp(0) + app.MainLoop() diff --git a/src_gui/labs.wxg b/src_gui/labs.wxg new file mode 100644 index 0000000..1c1a9cf --- /dev/null +++ b/src_gui/labs.wxg @@ -0,0 +1,56 @@ + + + + + + 252, 143 + frame + + + wxVERTICAL + + + 0 + wxEXPAND + + + wxVERTICAL + + + 0 + + + add_lab + + 250, 26 + + + + + + 0 + + + edit_lab + + 250, 37 + + + + + + 0 + + + remove_lab + + 250, 26 + + + + + + + + + diff --git a/src_gui/maket/AutoDrob.bmpr b/src_gui/maket/AutoDrob.bmpr index 83ea604..88ec285 100644 Binary files a/src_gui/maket/AutoDrob.bmpr and b/src_gui/maket/AutoDrob.bmpr differ