def __init__(self,parent):
Gtk.Grid.__init__(self,column_homogeneous=False, column_spacing=10,row_spacing=0)
button1 = Gtk.Button("Choose File")
button1.connect("clicked", self.on_file_clicked)
self.add(button1)
self.text_file = Gtk.Entry()
self.text_file.set_hexpand(True)
self.attach(self.text_file, 1, 0, 4, 1)
button2 = Gtk.Button("Choose Folder")
button2.connect("clicked", self.on_folder_clicked)
self.attach_next_to(button2, button1, Gtk.PositionType.BOTTOM, 1, 1)
self.text_folder = Gtk.Entry()
self.attach(self.text_folder, 1, 1, 4, 1)
评论列表
文章目录