Skip to main content

Thread: PyGTK TreeView Signal & Events


i'm using pythin 2.7 , pygtk. want override mouse clicking events own function call.

have:
code:
...  sw = gtk.scrolledwindow()  adj = sw.get_vadjustment()  ...  self.connect("button_press_event", pyapp.on_key_press)  ...  def on_key_press(widget, data=none):  ...      if data.button == 1:              #print "click one"              if ( adj.get_value() - step >= adj.get_lower() ):                  adj.set_value(adj.get_value() - step )              else:                  adj.set_value( adj.get_lower() )  ...
this works fine when i'm not in treeview widget, want work in treeview well.

program job list, have treeview in scrolledwindow , status-bar @ bottom of window. means mouse has in status-bar before function ever triggered.

story:
i've setup computer display job list. when computer turned on, python program starts automatically, , mouse pointer in center of screen. users can't move pointer around because i've modified mouse 3 industrial push buttons make interface kiosk. users don't have access keyboard or typical mouse. modified mouse because that's easiest way add large industrial buttons computer.

thanks.



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk PyGTK TreeView Signal & Events


Ubuntu

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached