projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define arrays of chartoo as the existing ones can't be used to store char values...
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
ogl
/
_basic.py
diff --git
a/wxPython/wx/lib/ogl/_basic.py
b/wxPython/wx/lib/ogl/_basic.py
index 757c5c2115da98632b52243ad34649c165f62b35..db095dd16500e7ab2a562c1be31808a7dba4b395 100644
(file)
--- a/
wxPython/wx/lib/ogl/_basic.py
+++ b/
wxPython/wx/lib/ogl/_basic.py
@@
-232,9
+232,9
@@
class Shape(ShapeEvtHandler):
self._canvas = canvas
self._xpos = 0.0
self._ypos = 0.0
self._canvas = canvas
self._xpos = 0.0
self._ypos = 0.0
- self._pen =
wx.Pen(wx.BLACK, 1, wx.SOLID)
+ self._pen =
BlackForegroundPen
self._brush = wx.WHITE_BRUSH
self._brush = wx.WHITE_BRUSH
- self._font =
wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)
+ self._font =
NormalFont
self._textColour = wx.BLACK
self._textColourName = wx.BLACK
self._visible = False
self._textColour = wx.BLACK
self._textColourName = wx.BLACK
self._visible = False
@@
-276,7
+276,7
@@
class Shape(ShapeEvtHandler):
# the region eventually (the duplication is for compatibility)
region = ShapeRegion()
region.SetName("0")
# the region eventually (the duplication is for compatibility)
region = ShapeRegion()
region.SetName("0")
- region.SetFont(
wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)
)
+ region.SetFont(
NormalFont
)
region.SetFormatMode(FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT)
region.SetColour("BLACK")
self._regions.append(region)
region.SetFormatMode(FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT)
region.SetColour("BLACK")
self._regions.append(region)
@@
-1166,7
+1166,7
@@
class Shape(ShapeEvtHandler):
"""Flash the shape."""
if self.GetCanvas():
dc = wx.ClientDC(self.GetCanvas())
"""Flash the shape."""
if self.GetCanvas():
dc = wx.ClientDC(self.GetCanvas())
- self.GetCanvas.PrepareDC(dc)
+ self.GetCanvas
()
.PrepareDC(dc)
dc.SetLogicalFunction(OGLRBLF)
self.Draw(dc)
dc.SetLogicalFunction(OGLRBLF)
self.Draw(dc)
@@
-2178,7
+2178,7
@@
class Shape(ShapeEvtHandler):
dc.SetLogicalFunction(OGLRBLF)
bound_x, bound_y = self.GetBoundingBoxMin()
dc.SetLogicalFunction(OGLRBLF)
bound_x, bound_y = self.GetBoundingBoxMin()
- self.GetEventHandler().On
End
Size(bound_x, bound_y)
+ self.GetEventHandler().On
Begin
Size(bound_x, bound_y)
# Choose the 'opposite corner' of the object as the stationary
# point in case this is non-centring resizing.
# Choose the 'opposite corner' of the object as the stationary
# point in case this is non-centring resizing.