Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PyGTK如何检测向上点击按钮_Python_User Interface_Gtk_Pygtk - Fatal编程技术网

Python PyGTK如何检测向上点击按钮

Python PyGTK如何检测向上点击按钮,python,user-interface,gtk,pygtk,Python,User Interface,Gtk,Pygtk,我想知道如何从一个简单的按钮中检测到“向上点击”(当我释放鼠标点击时) 下面是一个简单的新闻: eventbox.connect('button-press-event', callback) 联合国新闻界呢 eventbox.connect('button-unPress-event', callback) 实际术语为“释放”,因此: 啊哈,现在我觉得很明显。。。非常感谢。 eventbox.connect('button-release-event', callback)

我想知道如何从一个简单的按钮中检测到“向上点击”(当我释放鼠标点击时)

下面是一个简单的新闻:

eventbox.connect('button-press-event', callback)
联合国新闻界呢

eventbox.connect('button-unPress-event', callback)
实际术语为“释放”,因此:


啊哈,现在我觉得很明显。。。非常感谢。
eventbox.connect('button-release-event', callback)