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.
我正在尝试执行键盘命令。当我插入S++some_number时Return,我需要调用一个函数,该函数将在列上看到这个数字Gtk.Treeview并设置该行已被选中。我怎样才能做到这一点?
Gtk.Treeview
<treeview>.set_cursor(0) # for your value of `path` 0
这是你想要的吗?我认为treeview也会抓住焦点。
如果您想将给定的行添加到选择集中,而不是清除旧的选择并只选择一行,您必须使用Gtk.TreeSelection您通过.get_selection()方法获得的内容。
Gtk.TreeSelection
.get_selection()
I have static ArrayList<Batch>. i want to remove which object contain productcode
static ArrayList<Batch>
This is my Batch Entity
public class BatchControl implements Parcelable{ priv