How do you make gtk run in a separate thread, as it's now does the Gtk,main() block everything, even things in separate threads.
What I though would happen with this code was that the gui was created an did run in the thread 'Gui' then would the thread 'test1' update the listview every second. What happen is that the gui get initiated, visible and block the 'test1' thread from starting. When the gui is terminated with Gtk.main_quit will test1 finally start executing.
How do you do this in gtk?
def update_stat(self, t, data): # update the listview with new data
if __name__ == "__main__":
editor = Gui() # create gui
t = threading.Thread(target=g, name='Gui', args=(editor,))
t.daemon = True
threading.Thread(target=editor.update_stat, name='test1', args=(None,None)).start()
editor = Gui()
answer = calc_atoms_in_body()