Log In
New Account
Home My Page Project Cloud Code Snippets Project Openings Python for Maemo
Summary Tracker Lists SCM Wiki

Tap And Hold

Tap and Hold Support

Bug report


gtk.Widget.tap_and_hold_setup(menu=None, callback=None, data=None)

Configures a widget to handle tap-and-hold signals.

  • menu - gtk.Menu that will be shown
  • callback - Function for calculating the menu position. It will receive at least the menu that will be shown and the widget that generated the signal. Optionally it can receive the extra data. It should return a tuple (int,int,bool), with the x and y coordinates and if the menu should be "pushed" into the screen instead of just clamped to the size of the screen.
  • data - Extra data to be passed to the positioning function.

gtk.tap_and_hold_menu_position_top(menu, widget, data=None)

Provided function to position the menu right above the top-left corner of the original widget. Not intended to be used directly by the user. Instead, pass it to tap_and_hold_setup:

widget.tap_and_hold_setup(menu, callback=gtk.tap_and_hold_menu_position_top)

(last edited October 18, 2007) - Read Only [info] [diff])
FindPage by browsing or searching
5 best incoming links: FrontPage (7), RecentChanges (4)
5 best outgoing links:
5 most popular nearby: FrontPage (5788), RecentChanges (783)

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment