mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Trim trailing space samples directory
This commit is contained in:
@@ -18,13 +18,13 @@ class TestPanel(wx.Panel):
|
||||
self.overlay = wx.Overlay()
|
||||
|
||||
wx.TextCtrl(self, pos=(140,20))
|
||||
|
||||
|
||||
|
||||
def OnPaint(self, evt):
|
||||
# Just some simple stuff to paint in the window for an example
|
||||
dc = wx.PaintDC(self)
|
||||
dc.SetBackground(wx.Brush("sky blue"))
|
||||
dc.Clear()
|
||||
dc.Clear()
|
||||
dc.DrawLabel("Drag the mouse across this window to see \n"
|
||||
"a rubber-band effect using wx.Overlay",
|
||||
(140, 50, -1, -1))
|
||||
@@ -34,7 +34,7 @@ class TestPanel(wx.Panel):
|
||||
dc.SetPen(wx.Pen("red", 2))
|
||||
dc.SetBrush(wx.CYAN_BRUSH)
|
||||
dc.DrawPolygon(coords)
|
||||
|
||||
|
||||
|
||||
def OnLeftDown(self, evt):
|
||||
# Capture the mouse and save the starting position for the
|
||||
@@ -46,7 +46,7 @@ class TestPanel(wx.Panel):
|
||||
def OnMouseMove(self, evt):
|
||||
if evt.Dragging() and evt.LeftIsDown():
|
||||
rect = wx.Rect(topLeft=self.startPos, bottomRight=evt.GetPosition())
|
||||
|
||||
|
||||
# Draw the rubber-band rectangle using an overlay so it
|
||||
# will manage keeping the rectangle and the former window
|
||||
# contents separate.
|
||||
@@ -59,7 +59,7 @@ class TestPanel(wx.Panel):
|
||||
# wx.GCDC so don't try it.
|
||||
if 'wxMac' not in wx.PlatformInfo:
|
||||
dc = wx.GCDC(dc)
|
||||
|
||||
|
||||
dc.SetPen(wx.Pen("black", 2))
|
||||
dc.SetBrush(wx.Brush(wx.Colour(0xC0, 0xC0, 0xC0, 0x80)))
|
||||
dc.DrawRectangle(rect)
|
||||
@@ -78,7 +78,7 @@ class TestPanel(wx.Panel):
|
||||
del odc
|
||||
self.overlay.Reset()
|
||||
|
||||
|
||||
|
||||
|
||||
app = wx.App(redirect=False)
|
||||
frm = wx.Frame(None, title="wx.Overlay Test", size=(450,450))
|
||||
|
||||
Reference in New Issue
Block a user