mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Port some changes from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6153,8 +6153,8 @@ class FlatMenu(FlatMenuBase):
|
||||
|
||||
if win.GetClientRect().Contains(p):
|
||||
|
||||
event.m_x = p.x
|
||||
event.m_y = p.y
|
||||
event.SetX(p.x)
|
||||
event.SetY(p.y)
|
||||
win.OnMouseLeftUp(event)
|
||||
return
|
||||
|
||||
|
||||
@@ -334,7 +334,7 @@ class GridColMover(wx.EvtHandler):
|
||||
col = self.grid.XToCol(px+sx)
|
||||
|
||||
if col != wx.NOT_FOUND:
|
||||
self.grid.SelectCol(col,evt.m_controlDown)
|
||||
self.grid.SelectCol(col,evt.ControlDown())
|
||||
|
||||
return
|
||||
else:
|
||||
@@ -462,7 +462,7 @@ class GridRowMover(wx.EvtHandler):
|
||||
row = self.grid.YToRow(py + sy)
|
||||
|
||||
if row != wx.NOT_FOUND:
|
||||
self.grid.SelectRow(row,evt.m_controlDown)
|
||||
self.grid.SelectRow(row,evt.ControlDown())
|
||||
return
|
||||
else:
|
||||
bRow = self.rowWin.GetInsertionRow()
|
||||
|
||||
@@ -48,7 +48,7 @@ class TopicNameInvalid(RuntimeError):
|
||||
|
||||
|
||||
import re
|
||||
_validNameRE = re.compile(r'[a-zA-Z]\w*')
|
||||
_validNameRE = re.compile(r'[-0-9a-zA-Z]\w*')
|
||||
|
||||
|
||||
def validateName(topicName):
|
||||
|
||||
Reference in New Issue
Block a user