wolfhece 2.1.77__py3-none-any.whl → 2.1.79__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
wolfhece/PyDraw.py CHANGED
@@ -175,7 +175,7 @@ class Colors_1to9(wx.Frame):
175
175
 
176
176
  def change_colors(self, e):
177
177
 
178
- super(Colors_1to9, self).__init__(self._parent, title=_('Colors 1 to 9'), size=(200, 400))
178
+ super(Colors_1to9, self).__init__(self._parent, title=_('Colors 1 to 9'), size=(200, 400), style = wx.DEFAULT_FRAME_STYLE & ~ (wx.RESIZE_BORDER | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.CLOSE_BOX))
179
179
  panel = wx.Panel(self)
180
180
  panel.SetBackgroundColour(wx.Colour(255, 255, 255))
181
181
 
@@ -213,6 +213,13 @@ class Colors_1to9(wx.Frame):
213
213
  self.Bind(wx.EVT_BUTTON, self.OnSetDefault, cdmSetDefault)
214
214
  self.Bind(wx.EVT_BUTTON, self.OnSave, cmdSave)
215
215
 
216
+ icon = wx.Icon()
217
+ icon_path = Path(__file__).parent / "apps/wolf_logo2.bmp"
218
+ icon.CopyFromBitmap(wx.Bitmap(str(icon_path), wx.BITMAP_TYPE_ANY))
219
+ self.SetIcon(icon)
220
+
221
+ self.CenterOnScreen()
222
+
216
223
  self.Show()
217
224
 
218
225
  def Apply(self):