projects
/
PoPiPaint.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a another two examples of patterns
[PoPiPaint.git]
/
PoPiPaint.py
diff --git
a/PoPiPaint.py
b/PoPiPaint.py
index
e6929d9
..
683f2a1
100755
(executable)
--- a/
PoPiPaint.py
+++ b/
PoPiPaint.py
@@
-22,16
+22,16
@@
import wx
import CanvasFrame
import CanvasFrame
-class PoPiPaApp(wx.
PySimple
App):
+class PoPiPaApp(wx.App):
def __init__(self, *args, **kwargs):
self.base_image = kwargs.pop('base_image', None)
def __init__(self, *args, **kwargs):
self.base_image = kwargs.pop('base_image', None)
- wx.
PySimple
App.__init__(self, *args, **kwargs)
+ wx.App.__init__(self, *args, **kwargs)
def OnInit(self):
# We do not want a resizeable frame!
framestyle = wx.DEFAULT_FRAME_STYLE & \
~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX)
def OnInit(self):
# We do not want a resizeable frame!
framestyle = wx.DEFAULT_FRAME_STYLE & \
~(wx.RESIZE_BORDER | wx.MAXIMIZE_BOX)
- frame = CanvasFrame.CanvasFrame(None, title="PoPiPa", style=framestyle,
+ frame = CanvasFrame.CanvasFrame(None, title="PoPiPa
int
", style=framestyle,
base_image=self.base_image)
frame.Show()
return True
base_image=self.base_image)
frame.Show()
return True