projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use size_t for the total size of data instead of wxFileSize_t (msg catalogs can't...
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
popupctl.py
diff --git
a/wxPython/wx/lib/popupctl.py
b/wxPython/wx/lib/popupctl.py
index 44dc77dec1300b6942412e68a734451c5980862a..ed3f3a03576eec1634353f746b39433d878d9655 100644
(file)
--- a/
wxPython/wx/lib/popupctl.py
+++ b/
wxPython/wx/lib/popupctl.py
@@
-104,8
+104,8
@@
class PopButton(wx.PyControl):
else:
dc.SetPen(self.shadowPen)
for i in range(2):
else:
dc.SetPen(self.shadowPen)
for i in range(2):
- dc.DrawLine(
(x1+i, y1), (x1+i, y2-i)
)
- dc.DrawLine(
(x1, y1+i), (x2-i, y1+i)
)
+ dc.DrawLine(
x1+i, y1, x1+i, y2-i
)
+ dc.DrawLine(
x1, y1+i, x2-i, y1+i
)
# draw the lower right sides
if self.up:
# draw the lower right sides
if self.up:
@@
-113,20
+113,20
@@
class PopButton(wx.PyControl):
else:
dc.SetPen(self.highlightPen)
for i in range(2):
else:
dc.SetPen(self.highlightPen)
for i in range(2):
- dc.DrawLine(
(x1+i, y2-i), (x2+1, y2-i)
)
- dc.DrawLine(
(x2-i, y1+i), (x2-i, y2)
)
+ dc.DrawLine(
x1+i, y2-i, x2+1, y2-i
)
+ dc.DrawLine(
x2-i, y1+i, x2-i, y2
)
def DrawArrow(self,dc):
w, h = self.GetSize()
mx = w / 2
my = h / 2
dc.SetPen(self.highlightPen)
def DrawArrow(self,dc):
w, h = self.GetSize()
mx = w / 2
my = h / 2
dc.SetPen(self.highlightPen)
- dc.DrawLine(
(mx-5,my-5), (mx+5,my-5)
)
- dc.DrawLine(
(mx-5,my-5), (mx,my+5)
)
+ dc.DrawLine(
mx-5,my-5, mx+5,my-5
)
+ dc.DrawLine(
mx-5,my-5, mx,my+5
)
dc.SetPen(self.shadowPen)
dc.SetPen(self.shadowPen)
- dc.DrawLine(
(mx+4,my-5), (mx,my+5)
)
+ dc.DrawLine(
mx+4,my-5, mx,my+5
)
dc.SetPen(self.blackPen)
dc.SetPen(self.blackPen)
- dc.DrawLine(
(mx+5,my-5), (mx,my+5)
)
+ dc.DrawLine(
mx+5,my-5, mx,my+5
)
def OnPaint(self, event):
width, height = self.GetClientSize()
def OnPaint(self, event):
width, height = self.GetClientSize()