Hi
I have problem to get "wx.Window.PopupMenu" to work under windows NT.
Is it a way to make it work?
This little example script is working on XP and Win2000, but not on Win NT..
(The event is working for right click but no menu is visible..)
Using: python25, wxPython2.8.1.1
/Holmis
begin 666 TestPopupMenu.py
M:6UP;W)T('=X#0H-"DE$7U!!3D5,(#T @=W@N3F5W260H*0T*241?345.52 ]
M('=X+DYE=TED*"D-"@T *8VQA<W,@5 &5S=&9R86UE*'=X+D9R86UE*3H-"B @
M("!D968@7U]I;FET7U\H<V5L9BDZ#0H@(" @(" @('=X+D9R86UE+E]?:6YI
M=%]?*'-E;&8L($YO;F4L(" M,2P@)U!O<'5P(%1E<W0G+"!S:7IE/7=X+E-I
F4H,C P+" R,# I*0T*(" @(" @(" -"B @(" @(" @<V5L9BYP86YE;" ]
M('=X+E!A;F5L*'-E;&8L($E$7U!!3D5,*0T*(" @(" @("!S96QF+G!A;F5L
M+D)I;F0H=W@N15947U))1TA47T1/5TXL('-E;&8N;VY2:6=H=$-L:6-K*0T*
M#0H@(" @(" @('-E;&8N<&]P=7!-96YU(#T @=W@N365N=2@I#0H@(" @(" @
M('-E;&8N<&]P=7!-96YU+D%P<&5N9"A)1%]-14Y5+" G0VQO<V4G*0T*(" @
M(" @("!S96QF+G!O<'5P365N=2Y":6YD*'=X+D565%]-14Y5+"!S96QF+F]N
M0VQO<V4I#0H@(" @(" @( T*(" @(" @("!S96QF+D-E;G1E<D]N4V-R965N
M*"D-"@T *(" @(&1E9B!O;E)I9VAT0VQI8VLH<V5L9BP@979E;G0I.@T *(" @
M(" @("!P<FEN=" G<FEG:'0@8VQI8VL@;VX@<&%N96PG#0H@(" @(" @('-E
M;&8N<&%N96PN4&]P=7!-96YU*'-E;&8N<&]P=7!-96YU+"!E=F5N="Y'9710
M;W-I=&EO;B@I*0T*#0H @(" @9 &5F(&]N0VQO<V4H<V5L9BP@979E;G0I.@T *
M(" @(" @("!S96QF+D1E<W1R;WDH*0T*#0IC ;&%S<R!497-T07!P*'=X+D%P
M<"DZ#0H@(" @9 &5F($]N26YI="AS96QF*3H-"B @(" @(" @<V5L9BYM86EN
M(#T @5&5S=&9R86UE*"D-"B @(" @(" @<V5L9BYM86EN+E-H;W<H*0T*(" @
M(" @("!S96QF+E-E=%1O<%=I;F1O=RAS96QF+FUA:6XI#0H@(" @(" @(')E
M='5R;B!4<G5E#0H-"F1E9B!M86EN*"DZ#0H@(" @87 !P;&EC871I;VX@/2!4
M97-T07!P*# I#0H@(" @87 !P;&EC871I;VXN36%I;DQO;W H*0T*#0II9B !?
D7VYA;65?7R ]/2 G7U]M86EN7U\G.@T *(" @(&UA:6XH*0T*
`
end
Hi Stefan,
I cannot view the script you attached (I’m using gmail) nor does it show correctly in the gmane archives:
http://article.gmane.org/gmane.comp.python.wxpython/44650
Peter.
···
On 2/15/07, Stefan Holmgren stefan.holmgren@accalon.se wrote:
Hi
I have problem to get “wx.Window.PopupMenu” to work under windows NT.
Is it a way to make it work?
This little example script is working on XP and Win2000, but not on Win NT…
(The event is working for right click but no menu is visible…)
Using: python25, wxPython2.8.1.1
/Holmis
begin 666 TestPopupMenu.py
M:6UP;W)T(‘=X#0H-"DE$7U!!3D5,(#T @=W@N3F5W260H0T 241?345.52 ]
M(’=X+DYE=TED*“D-”@T 8VQA<W,@5 &5S=&9R86UE ’=X+D9R86UE*3H-"B @
M(“!D968@7U]I;FET7U\H<V5L9BDZ#0H@(” @(" @(‘=X+D9R86UE+E]?:6YI
M=%]?*’-E;&8L($YO;F4L(" M,2P@)U!O<'5P(%1E<W0G+"!S:7IE/7=X+E-I
F4H,C P+" R,# I0T (" @(" @(" -“B @(” @(" @<V5L9BYP86YE;" ]
M(‘=X+E!A;F5L*’-E;&8L($E$7U!!3D5,0T (" @(" @(“!S96QF+G!A;F5L
M+D)I;F0H=W@N15947U))1TA47T1/5TXL('-E;&8N;VY2:6=H=$-L:6-K0T
M#0H@(” @(" @(‘-E;&8N<&]P=7!-96YU(#T @=
W@N365N=2@I#0H@(" @(" @
M(’-E;&8N<&]P=7!-96YU+D%P<&5N9"A)1%]-14Y5+" G0VQO<V4G0T (" @
M(" @(“!S96QF+G!O<'5P365N=2Y”:6YD*'=X+D565%]-14Y5+"!S96QF+F]N
M0VQO<V4I#0H@(" @(" @( T*(" @(" @(“!S96QF+D-E;G1E<D]N4V-R965N
M*“D-”@T *(” @(&1E9B!O;E)I9VAT0VQI8VLH<V5L9BP@979E;G0I.@T *(" @
M(" @(“!P<FEN=” G<
FEG:‘0@8VQI8VL@;VX@<&%N96PG#0H@(" @(" @(’-E
M;&8N<&%N96PN4&]P=7!-96YU*‘-E;&8N<&]P=7!-96YU+“!E=F5N=“Y’9710
M;W-I=&EO;B@I0T #0H @(” @9 &5F(&]N0VQO<V4H<
V5L9BP@979E;G0I.@T *
M(” @(" @("!S96QF+D1E<W1R;WDH0T #0IC ;&%S<R!497-T07!P*’=X+D%P
M<“DZ#0H@(” @9 &5F($]N26YI=“AS96QF*3H-“B @(” @(” @<V5L9BYM86EN
M(#T @5&5S=&9R86UE*“D-“B @(” @(” @<V5L9BYM86EN+E-H;W<H0T (" @
M(" @(“!S96QF+E-E=%1O<%=I;F1O=RAS96QF+FUA:6XI#0H@(” @(" @(')E
M='5R;B!4<G5E#0H-"F1E9B!M86EN*“DZ#0H@(” @87 !P;&EC871I;VX@/2!4
M97-T07!P*# I#0H@(" @87 !P;&EC871I;VXN36%I;DQO;W H0T #0II9B !?
D7VYA;65?7R ]/2 G7U]M86EN7U\G.@T *(" @(&UA:6XH0T
`
end
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
–
There is NO FATE, we are the creators.
Oops… sorry… I will paste it like text instead…
— source -----------------------------
import wx
ID_PANEL = wx.NewId()
ID_MENU = wx.NewId()
class Testframe(wx.Frame):
def init (self):
wx.Frame.init (self, None, -1, ‘Popup Test’, size=wx.Size(200, 200))
self.panel = wx.Panel(self, ID_PANEL)
self.panel.Bind(wx.EVT_RIGHT_DOWN, self.onRightClick)
self.popupMenu = wx.Menu()
self.popupMenu.Append(ID_MENU, 'Close')
self.popupMenu.Bind(wx.EVT_MENU, self.onClose)
self.CenterOnScreen()
def onRightClick(self, event):
print 'right click on panel'
self.panel.PopupMenu(self.popupMenu, event.GetPosition())
def onClose(self, event):
self.Destroy()
class TestApp(wx.App):
def OnInit(self):
self.main = Testframe()
self.main.Show()
self.SetTopWindow(self.main)
return True
def main():
application = TestApp(0)
application.MainLoop()
if name == ‘main ’:
main()
···
“Peter Damoc” pdamoc@gmail.com wrote in message news:90083fe50702150038l3cd0565bs2d21a467ee798c9e@mail.gmail.com …
Hi Stefan,
I cannot view the script you attached (I’m using gmail) nor does it show correctly in the gmane archives:
http://article.gmane.org/gmane.comp.python.wxpython/44650
Peter.
On 2/15/07, ** Stefan Holmgren** <stefan.holmgren@accalon.se > wrote:
Hi
I have problem to get “wx.Window.PopupMenu” to work under windows NT.
Is it a way to make it work?
This little example script is working on XP and Win2000, but not on Win NT..
(The event is working for right click but no menu is visible..)
Using: python25, wxPython2.8.1.1
/Holmis
begin 666 TestPopupMenu.py
M:6UP;W)T('=X#0H-"DE$7U!!3D5,(#T@=W@N3F5W260H*0T*241?345.52 ]
M('=X+DYE=TED*"D-"@T*8VQA<W,@5&5S=&9R86UE*'=X+D9R86UE*3H-"B @
M("!D968@7U]I;FET7U\H<V5L9BDZ#0H@(" @(" @('=X+D9R86UE+E]?:6YI
M=%]?*'-E;&8L($YO;F4L(" M,2P@)U!O<'5P(%1E<W0G+"!S:7IE/7=X+E-I
>F4H,C P+" R,# I*0T*(" @(" @(" -"B @(" @(" @<V5L9BYP86YE;" ]
M('=X+E!A;F5L*'-E;&8L($E$7U!!3D5,*0T*(" @(" @("!S96QF+G!A;F5L
M+D)I;F0H=W@N15947U))1TA47T1/5TXL(‘-E;&8N;VY2:6=H=$-L:6-K0T
M#0H@(" @(" @(’-E;&8N<&]P=7!-96YU(#T @= W@N365N=2@I#0H@(" @(" @
M(‘-E;&8N<&]P=7!-96YU+D%P<&5N9"A)1%]-14Y5+" G0VQO<V4G0T (" @
M(" @(“!S96QF+G!O<'5P365N=2Y”:6YD*’=X+D565%]-14Y5+“!S96QF+F]N
M0VQO<V4I#0H@(” @(" @( T*(" @(" @(“!S96QF+D-E;G1E<D]N4V-R965N
M*“D-”@T *(” @(&1E9B!O;E)I9VAT0VQI8VLH<V5L9BP@979E;G0I.@T *(" @
M(" @(“!P<FEN=” G< FEG:‘0@8VQI8VL@;VX@<&%N96PG#0H@(" @(" @(’-E
M;&8N<&%N96PN4&]P=7!-96YU*‘-E;&8N<&]P=7!-96YU+“!E=F5N=“Y’9710
M;W-I=&EO;B@I0T #0H @(” @9 &5F(&]N0VQO<V4H< V5L9BP@979E;G0I.@T *
M(” @(" @("!S96QF+D1E<W1R;WDH0T #0IC ;&%S<R!497-T07!P*’=X+D%P
M<“DZ#0H@(” @9 &5F($]N26YI=“AS96QF3H-“B @(” @(" @<V5L9BYM86EN
M(#T @5&5S=&9R86UE "D-“B @(” @(” @<V5L9BYM86EN+E-H;W<H0T (" @
M(" @(“!S96QF+E-E=%1O<%=I;F1O=RAS96QF+FUA:6XI#0H@(” @(" @(')E
M='5R;B!4<G5E#0H-“F1E9B!M86EN*“DZ#0H@(” @87 !P;&EC871I;VX@/2!4
M97-T07!P*# I#0H@(” @87 !P;&EC871I;VXN36%I;DQO;W H0T #0II9B !?
D7VYA;65?7R ]/2 G7U]M86EN7U\G.@T *(" @(&UA:6XH0T
`
end
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
There is NO FATE, we are the creators.
Robin
February 15, 2007, 5:22pm
4
Stefan Holmgren wrote:
Hi
I have problem to get "wx.Window.PopupMenu" to work under windows NT.
Is it a way to make it work?
This little example script is working on XP and Win2000, but not on Win NT..
(The event is working for right click but no menu is visible..)
Using: python25, wxPython2.8.1.1
def onRightClick(self, event):
print 'right click on panel'
self.panel.PopupMenu(self.popupMenu, event.GetPosition())
I don't have a NT box to test with so I can't say for sure what the problem is, but you might try not passing the position. There was a change a while back that uses a default position if one is not specified, perhaps that has some unexpected interaction on NT.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!