[ wxwindows-Bugs-1536281 ] Context menu cut/paste doesn't generate
EVT_TEXT in OSX
SourceForge.net
noreply at sourceforge.net
Mon Aug 7 13:30:01 PDT 2006
Bugs item #1536281, was opened at 2006-08-07 16:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1536281&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Craig Howard (craig_howard)
Assigned to: Stefan Csomor (csomor)
Summary: Context menu cut/paste doesn't generate EVT_TEXT in OSX
Initial Comment:
The following script will generate an EVT_TEXT in
Win98, WinXP, GTK2, but not OS X, using wxpython
2.6.3.3. To test, try cutting text from one text
control to another using the ctrl-click context menu.
import wx
#This script works on win xp.
class Panel(wx.Panel):
def __init__(self, frame):
wx.Panel.__init__(self, frame, -1)
txt1 = wx.TextCtrl(self, -1, 'hello', (10, 10),
(70, 30))
txt2 = wx.TextCtrl(self, -1, '', (10, 50), (70,
30))
txt1.Bind(wx.EVT_TEXT, self.on_text)
txt2.Bind(wx.EVT_TEXT, self.on_text)
def on_text(self, event):
print 'text event'
app = wx.PySimpleApp()
f = wx.Frame(None, -1)
p = Panel(f)
f.Show()
app.MainLoop()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1536281&group_id=9863
More information about the wx-dev
mailing list