Popup menus via python.

Post your own tutorials, guides and demos.

Post » Tue Nov 09, 2010 12:08 am

Here is a way to use Windows pop-up menus with python:
[url:3stwpywj]http://dl.dropbox.com/u/5426011/examples2/pyPopupMenu2.zip[/url:3stwpywj]
made in 0.99.96

[u:3stwpywj]No python install is required, all necessarily files are included.[/u:3stwpywj]

Notes:
Had to use some event trickery so that when the menu was opened the timescale would remain 0 till the next tick. Otherwise objects that depend on timedelta would jump after the menu closed.

This probably isn't very useful to most people using construct, but it's interesting none the less.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Tue Nov 09, 2010 6:58 am

Quite nice! I've got to look into ctypes. I really like the zipped dependencies, too.

I will surely find use for this. Thanks for sharing. :)
B
3
S
2
G
2
Posts: 187
Reputation: 1,449


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests