Python Forum
[Tkinter] can i had a cefpython3 to a labelframe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] can i had a cefpython3 to a labelframe
#14
This code really belongs in class MainFrame.__init__
    left = tk.LabelFrame(app, text="", padx=5, pady=5, highlightbackground="black",
                         highlightthickness=2)
    left.grid(row=0, column=0, rowspan=99, sticky='ne', pady=2)
 
    home_browser = tk.LabelFrame(app, text="", padx=5, pady=5, highlightbackground="black",
                                 highlightthickness=2)
    home_browser.grid(row=0, column=1, rowspan=99, sticky='ne', pady=2)
 
    right = tk.LabelFrame(app, text="", padx=5, pady=5, highlightbackground="black",
                                 highlightthickness=2)
    right.grid(row=0, column=2, rowspan=99, sticky='ne', pady=2)
left is placed in the same grid cell as navigation_bar
    left.grid(row=0, column=0, rowspan=99, sticky='ne', pady=2)
       self.navigation_bar.grid(row=0, column=0,
                                 sticky=(tk.N + tk.S + tk.E + tk.W))
I don't know, but think this may be your main problem because it removes the Navigation bar, and thus the browser, from the MainFrame. As mentioned in the comments in get_window_handle, the MAC version is kind of brittle and it is easy to make it crash.
Quote: # There is still one issue with this solution. Sometimes there is more than one window, for example when application
# didn't close cleanly last time Python displays an NSAlert window asking whether to Reopen that window. In such
# case app will crash and you will see in console:
# > Fatal Python error: PyEval_RestoreThread: NULL tstate1
That is the error message you are getting when your program crashes.

Why are you setting rowspan=99? Is that a sloppy way to say "I am the only thing in this column?" Sloppy meaning imprecise, not bad. Maybe bad.
Reply


Messages In This Thread
can i had a cefpython3 to a labelframe - by razs - Aug-28-2021, 10:47 AM
RE: can i had a cefpython3 to a labelframe - by deanhystad - Sep-01-2021, 05:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter destroy label inside labelFrame Nick_tkinter 3 4,639 Sep-17-2023, 03:38 PM
Last Post: munirashraf9821
  Issue in Tkinter with winfo_class() and LabelFrame ReDefendeur 1 2,786 Oct-05-2020, 05:52 AM
Last Post: Jeff900

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020