Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个或多个 gtk.Entry 回复我创建的按钮 (gtk.Button) 而不是回车键。
我正在使用 Python 2.7
可能吗?
我创建了一个新的 Entry 类,添加了这一行: self.connect('focus-out-event', self.onEntryActivate )
self.connect('focus-out-event', self.onEntryActivate )