Start PyGTK cellrenderer edit from code

前端 未结 1 538
囚心锁ツ
囚心锁ツ 2021-02-06 15:21

I have a treeview with an editable CellRendererText:

self.renderer = gtk.CellRendererText()
self.renderer.set_property(\'editable\', True)

But

相关标签:
1条回答
  • 2021-02-06 16:14
    def set_cursor(path, focus_column=None, start_editing=False)
    

    ... If column is specified, and start_editing is True, then editing should be started in the specified cell. This method is often followed by the gtk.Widget.grab_focus() method to give keyboard focus to the treeview.

    Source

    0 讨论(0)
提交回复
热议问题