From fdffa68d6d836bf3f529abd06c3c065a42d2f9d2 Mon Sep 17 00:00:00 2001 From: Myron Franze Date: Sat, 28 Sep 2019 13:05:41 +0200 Subject: [PATCH] added gitignore for *~ files e.g. vim ~ files --- .gitignore | 1 + Software/Gui/GuiPc.py~ | 152 ---------------- Software/Gui/GuiPc.wxg~ | 390 ---------------------------------------- 3 files changed, 1 insertion(+), 542 deletions(-) create mode 100644 .gitignore delete mode 100755 Software/Gui/GuiPc.py~ delete mode 100644 Software/Gui/GuiPc.wxg~ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/Software/Gui/GuiPc.py~ b/Software/Gui/GuiPc.py~ deleted file mode 100755 index a26fc43..0000000 --- a/Software/Gui/GuiPc.py~ +++ /dev/null @@ -1,152 +0,0 @@ -#!/usr/bin/env python -# -*- coding: UTF-8 -*- -# -# generated by wxGlade 0.8.0 on Sat Sep 28 11:22:51 2019 -# - -import wx - -# begin wxGlade: dependencies -import gettext -# end wxGlade - -# begin wxGlade: extracode -# end wxGlade - - -class _240609421_MyFrame(wx.Frame): - def __init__(self, *args, **kwds): - # begin wxGlade: _240609421_MyFrame.__init__ - kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE - wx.Frame.__init__(self, *args, **kwds) - self.SetSize((640, 480)) - self.Button_V12 = wx.Button(self, wx.ID_ANY, _("V12"), style=wx.BORDER_NONE) - self.Button_V230 = wx.Button(self, wx.ID_ANY, _("V230"), style=wx.BORDER_NONE) - self.Button_Gas = wx.Button(self, wx.ID_ANY, _("Gas"), style=wx.BORDER_NONE) - self.Button_Temp = wx.Button(self, wx.ID_ANY, _("Temp"), style=wx.BORDER_NONE) - self.Button_Licht = wx.Button(self, wx.ID_ANY, _("Licht"), style=wx.BORDER_NONE) - self.Button_Tur = wx.Button(self, wx.ID_ANY, _(u"T\u00fcr"), style=wx.BORDER_NONE) - self.Button_Batterie = wx.Button(self, wx.ID_ANY, _("Batterie"), style=wx.BORDER_NONE) - self.Button_Zundung = wx.Button(self, wx.ID_ANY, _(u"Z\u00fcndung"), style=wx.BORDER_NONE) - self.button_3 = wx.Button(self, wx.ID_ANY, _("Anzeige 1")) - self.button_4 = wx.Button(self, wx.ID_ANY, _("Anzeige 2")) - self.button_5 = wx.Button(self, wx.ID_ANY, _("Anzeige 3")) - self.button_6 = wx.Button(self, wx.ID_ANY, _("Anzeige 4")) - self.button_Batterieladung = wx.Button(self, wx.ID_ANY, _("Batterieladung 30%"), style=wx.BORDER_NONE) - self.button_Alarmzeit = wx.Button(self, wx.ID_ANY, _("Alarmzeit 14:02:30"), style=wx.BORDER_NONE) - self.button_Uhrzeit = wx.Button(self, wx.ID_ANY, _("Uhrzeit 14:02:30"), style=wx.BORDER_NONE) - - self.__set_properties() - self.__do_layout() - # end wxGlade - - def __set_properties(self): - # begin wxGlade: _240609421_MyFrame.__set_properties - self.SetTitle(_("frame")) - self.SetBackgroundColour(wx.Colour(71, 71, 200)) - self.Button_V12.SetMinSize((75, 30)) - self.Button_V12.SetBackgroundColour(wx.Colour(0, 255, 0)) - self.Button_V12.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_V12.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_V12.Enable(False) - self.Button_V230.SetMinSize((75, 30)) - self.Button_V230.SetBackgroundColour(wx.Colour(0, 255, 0)) - self.Button_V230.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_V230.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_V230.Enable(False) - self.Button_Gas.SetMinSize((75, 30)) - self.Button_Gas.SetBackgroundColour(wx.Colour(255, 0, 0)) - self.Button_Gas.SetForegroundColour(wx.Colour(255, 255, 255)) - self.Button_Gas.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Gas.Enable(False) - self.Button_Temp.SetMinSize((75, 30)) - self.Button_Temp.SetBackgroundColour(wx.Colour(0, 255, 0)) - self.Button_Temp.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_Temp.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Temp.Enable(False) - self.Button_Licht.SetMinSize((75, 30)) - self.Button_Licht.SetBackgroundColour(wx.Colour(0, 255, 0)) - self.Button_Licht.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_Licht.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Licht.Enable(False) - self.Button_Tur.SetMinSize((75, 30)) - self.Button_Tur.SetBackgroundColour(wx.Colour(255, 255, 0)) - self.Button_Tur.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_Tur.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Tur.Enable(False) - self.Button_Batterie.SetMinSize((75, 30)) - self.Button_Batterie.SetBackgroundColour(wx.Colour(255, 0, 0)) - self.Button_Batterie.SetForegroundColour(wx.Colour(255, 255, 255)) - self.Button_Batterie.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Batterie.Enable(False) - self.Button_Zundung.SetMinSize((75, 30)) - self.Button_Zundung.SetBackgroundColour(wx.Colour(255, 255, 0)) - self.Button_Zundung.SetForegroundColour(wx.Colour(0, 0, 255)) - self.Button_Zundung.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.Button_Zundung.Enable(False) - self.button_3.SetMinSize((85, 83)) - self.button_4.SetMinSize((85, 83)) - self.button_5.SetMinSize((85, 83)) - self.button_6.SetMinSize((85, 83)) - self.button_Batterieladung.SetBackgroundColour(wx.Colour(255, 255, 255)) - self.button_Batterieladung.SetForegroundColour(wx.Colour(0, 0, 255)) - self.button_Batterieladung.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.button_Batterieladung.Enable(False) - self.button_Alarmzeit.SetBackgroundColour(wx.Colour(255, 255, 255)) - self.button_Alarmzeit.SetForegroundColour(wx.Colour(0, 0, 255)) - self.button_Alarmzeit.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.button_Alarmzeit.Enable(False) - self.button_Uhrzeit.SetBackgroundColour(wx.Colour(255, 255, 255)) - self.button_Uhrzeit.SetForegroundColour(wx.Colour(0, 0, 255)) - self.button_Uhrzeit.SetFont(wx.Font(11, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, "")) - self.button_Uhrzeit.Enable(False) - # end wxGlade - - def __do_layout(self): - # begin wxGlade: _240609421_MyFrame.__do_layout - grid_sizer_3 = wx.FlexGridSizer(3, 1, 0, 0) - grid_sizer_1 = wx.GridSizer(1, 3, 0, 0) - grid_sizer_2 = wx.FlexGridSizer(1, 2, 5, 5) - grid_sizer_6 = wx.GridBagSizer(3, 3) - grid_sizer_5 = wx.FlexGridSizer(4, 1, 0, 0) - grid_sizer_4 = wx.FlexGridSizer(1, 8, 0, 0) - grid_sizer_4.Add(self.Button_V12, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_V230, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Gas, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Temp, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Licht, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Tur, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Batterie, 0, wx.ALL, 2) - grid_sizer_4.Add(self.Button_Zundung, 0, wx.ALL, 2) - grid_sizer_3.Add(grid_sizer_4, 1, wx.ALIGN_CENTER_HORIZONTAL | wx.EXPAND, 0) - grid_sizer_5.Add(self.button_3, 0, wx.ALL, 5) - grid_sizer_5.Add(self.button_4, 0, wx.ALL, 5) - grid_sizer_5.Add(self.button_5, 0, wx.ALL, 5) - grid_sizer_5.Add(self.button_6, 0, wx.ALL, 5) - grid_sizer_2.Add(grid_sizer_5, 1, wx.EXPAND, 0) - grid_sizer_2.Add(grid_sizer_6, 1, wx.EXPAND, 0) - grid_sizer_3.Add(grid_sizer_2, 1, wx.EXPAND, 0) - grid_sizer_1.Add(self.button_Batterieladung, 0, wx.ALIGN_CENTER | wx.ALL | wx.EXPAND, 2) - grid_sizer_1.Add(self.button_Alarmzeit, 0, wx.ALIGN_CENTER | wx.ALL | wx.EXPAND, 2) - grid_sizer_1.Add(self.button_Uhrzeit, 0, wx.ALIGN_CENTER | wx.ALL | wx.EXPAND, 2) - grid_sizer_3.Add(grid_sizer_1, 1, wx.EXPAND, 0) - self.SetSizer(grid_sizer_3) - self.Layout() - # end wxGlade - -# end of class _240609421_MyFrame - -class MyApp(wx.App): - def OnInit(self): - self.frame = _240609421_MyFrame(None, wx.ID_ANY, "") - self.SetTopWindow(self.frame) - self.frame.Show() - return True - -# end of class MyApp - -if __name__ == "__main__": - gettext.install("app") # replace with the appropriate catalog name - - app = MyApp(0) - app.MainLoop() diff --git a/Software/Gui/GuiPc.wxg~ b/Software/Gui/GuiPc.wxg~ deleted file mode 100644 index ca19a19..0000000 --- a/Software/Gui/GuiPc.wxg~ +++ /dev/null @@ -1,390 +0,0 @@ - - - - - - 640, 480 - #4747c8 - frame - - - 3 - 1 - 0 - 0 - - - 0 - wxEXPAND|wxALIGN_CENTER_HORIZONTAL - - 1 - 8 - 0 - 0 - - - 2 - wxALL - - 75, 30 - #00ff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #00ff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #ff0000 - #ffffff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #00ff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #00ff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #ffff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #ff0000 - #ffffff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL - - 75, 30 - #ffff00 - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - - - 0 - wxEXPAND - - 1 - 2 - 5 - 5 - - - 0 - wxEXPAND - - 4 - 1 - 0 - 0 - - - 5 - wxALL - - 85, 83 - - - - - - 5 - wxALL - - 85, 83 - - - - - - 5 - wxALL - - 85, 83 - - - - - - 5 - wxALL - - 85, 83 - - - - - - - - 5 - wxALL|wxEXPAND - - 3 - 3 - 3 - 3 - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - 0 - - - - - - - - - - - 0 - wxEXPAND - - 1 - 3 - 0 - 0 - - - 2 - wxALL|wxEXPAND|wxALIGN_CENTER - - #ffffff - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL|wxEXPAND|wxALIGN_CENTER - - #ffffff - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - 2 - wxALL|wxEXPAND|wxALIGN_CENTER - - #ffffff - #0000ff - - 11 - default - - bold - 0 - - - 1 - - - - - - - - -