How to do it...

When we created an instance of a wxPython GUI from our tkinter GUI, we could no longer use the tkinter GUI controls until we closed the one instance of the wxPython GUI. Let's improve on this now:

  1. Create a new module and name it Control_Frameworks_NOT_working.py.
  1. Write the following code:
#==================================================================import tkinter as tkfrom tkinter import ttkfrom tkinter import scrolledtextfrom threading import Threadwin = tk.Tk()      win.title("Python GUI")aLabel = ttk.Label(win, text="A Label")aLabel.grid(column=0, row=0) ttk.Label(win, text="Enter a name:").grid(column=0, row=0)name = tk.StringVar()nameEntered = ttk.Entry(win, width=12, textvariable=name)nameEntered.grid(column=0, ...

Get Python GUI Programming Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.