Bugfix for exit button position. Button still not fully functional... :/
This commit is contained in:
parent
27d100708d
commit
91023c6fd3
@ -35,7 +35,7 @@ class PaintWindow(wx.Window):
|
|||||||
|
|
||||||
size = parent.GetSize()
|
size = parent.GetSize()
|
||||||
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
||||||
pos=(size[0]-125, size[1]-125),
|
pos=(size[0]-125, size[1]-75),
|
||||||
size=(100, 50))
|
size=(100, 50))
|
||||||
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
||||||
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
||||||
@ -131,7 +131,7 @@ class PaintWindow(wx.Window):
|
|||||||
|
|
||||||
size = self.GetSize()
|
size = self.GetSize()
|
||||||
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
||||||
pos=(size[0]-125, size[1]-125),
|
pos=(size[0]-125, size[1]-75),
|
||||||
size=(100, 50))
|
size=(100, 50))
|
||||||
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
||||||
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
||||||
@ -161,7 +161,7 @@ class PaintWindow(wx.Window):
|
|||||||
|
|
||||||
size = self.GetSize()
|
size = self.GetSize()
|
||||||
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
self.button_exit = wx.Button(self, id=-1, label='Exit',
|
||||||
pos=(size[0]-125, size[1]-125),
|
pos=(size[0]-125, size[1]-75),
|
||||||
size=(100, 50))
|
size=(100, 50))
|
||||||
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
self.button_exit.Bind(wx.EVT_BUTTON, self.button_exit_handle)
|
||||||
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
self.button_exit.SetToolTip(wx.ToolTip("Click to exit"))
|
||||||
@ -251,5 +251,5 @@ class PaintFrame(wx.Frame):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = wx.App()
|
app = wx.App()
|
||||||
frame = PaintFrame()
|
frame = PaintFrame()
|
||||||
frame.Show() #FullScreen(True, wx.FULLSCREEN_ALL)
|
frame.ShowFullScreen(True, wx.FULLSCREEN_ALL)
|
||||||
app.MainLoop()
|
app.MainLoop()
|
||||||
|
Loading…
Reference in New Issue
Block a user