mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
Add missing clipboard event type and binder
This commit is contained in:
@@ -77,6 +77,11 @@ def run():
|
||||
TheClipboard = _wxPyDelayedInitWrapper(Clipboard.Get)
|
||||
""")
|
||||
|
||||
# Add the missing event type for the clipboard event
|
||||
module.addItem(etgtools.WigCode(
|
||||
"wxEventType wxEVT_CLIPBOARD_CHANGED /PyName=wxEVT_CLIPBOARD_CHANGED/;"))
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
tools.runGenerators(module)
|
||||
|
@@ -217,6 +217,8 @@ EVT_TWO_FINGER_TAP = wx.PyEventBinder( wxEVT_TWO_FINGER_TAP )
|
||||
EVT_LONG_PRESS = wx.PyEventBinder( wxEVT_LONG_PRESS )
|
||||
EVT_PRESS_AND_TAP = wx.PyEventBinder( wxEVT_PRESS_AND_TAP )
|
||||
|
||||
EVT_CLIPBOARD_CHANGED = PyEventBinder(wxEVT_CLIPBOARD_CHANGED, 1)
|
||||
|
||||
|
||||
# deprecated wxEVT aliases
|
||||
wxEVT_COMMAND_BUTTON_CLICKED = wxEVT_BUTTON
|
||||
|
@@ -6,6 +6,11 @@ import wx
|
||||
|
||||
class clipbrd_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_clipbrd0(self):
|
||||
wx.wxEVT_CLIPBOARD_CHANGED
|
||||
wx.EVT_CLIPBOARD_CHANGED
|
||||
|
||||
|
||||
def test_clipbrd1(self):
|
||||
# copy
|
||||
data1 = wx.TextDataObject('This is some data.')
|
||||
|
Reference in New Issue
Block a user