简体   繁体   中英

gui within a gui - tkinter python

I am trying to embed a chat system (that is a gui) within another gui I have already created. I have tested the chat application separately (it uses socket programming) and it works fine, but when I copy and paste that code into the original gui application (so that when I press a button it opens the chat application), it stops working.

I don't know why this is happening, so any insight would be helpful. I have a feeling it has something to do with the fact that I am trying to run a gui within a gui, but I am not sure, as this is the first time I'm working with python gui's.

Use the Tkinter Toplevel window instead of Tk window. You should never have two Tk windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM