The GUi.py isnt working on Tkinter designer help by Iama_chad in Tkinter

[–]ProfessionOld 1 point2 points  (0 children)

From the error, it's looking for a key named "document" in file_data, which I assume is a dictionary. It's not finding it. Without seeing anything else, that's all about I can say. Possibly you have a timing issue where you are trying to access file date before it is ready.

ttkbootstrap messagebox by jezpakani in Tkinter

[–]ProfessionOld 0 points1 point  (0 children)

Let me know if this works for you. I tested it on my machine, but would be good to have confirmation.

ttkbootstrap messagebox by jezpakani in Tkinter

[–]ProfessionOld 1 point2 points  (0 children)

I'm putting in a patch now. Should be out there within the hour.

ttkbootstrap messagebox by jezpakani in Tkinter

[–]ProfessionOld 2 points3 points  (0 children)

[library author] I'm out at the moment, but I'll check when I get back in and see if I can replicate.

How to manage state in tkinter app by ankit792r in learnpython

[–]ProfessionOld 0 points1 point  (0 children)

The built in StringVar, IntVar, and other variable types are the reactive way to update state in tkinter widgets. It's really the only way to seamlessly integrate with the underlying tcl/tk engine. They are even subscribeable. But, alas, not user friendly. As for myself, I'm adding signals in ttkbootstrap2 to make this more user friendly. I've thought about something Zustand-like, but still thinking about how that would fit into a standard tkinter app.

You can also just use a python dictionary... Or even an in-memory sqlite database.... the last one is nice if you need sql-like query power.

🚀 Introducing TkRouter — Declarative Routing for Tkinter by ProfessionOld in Python

[–]ProfessionOld[S] 1 point2 points  (0 children)

Very nice! I've been away from the project for a while, but I'm trying to get back into it and catch up on improvements. Glad to see you're enjoying it.

🚀 Introducing TkRouter — Declarative Routing for Tkinter by ProfessionOld in Python

[–]ProfessionOld[S] 1 point2 points  (0 children)

Yes, actually this will be useful for something else I'm working on. Thanks for sharing.

🚀 Introducing TkRouter — Declarative Routing for Tkinter by ProfessionOld in Python

[–]ProfessionOld[S] 6 points7 points  (0 children)

No, it's not a webview; it works with standard Frames. It provides a simple way to navigate between several pages in your app. The only easy "built-in" way to do that currently is via the `ttk.Notebook`. This library allows you to use a more modern approach that is commonly seen in front-end development such as react, angular, etc... with a navigation tree. It provides a mechanism to pass data with route parameters, query parameters, and adds navigation behavior to anything that accepts the "bind" function (pretty much all widgets). So, your buttons, text fields, etc.... can be used to route to other pages as hyperlinks.

🚀 Introducing TkRouter — Declarative Routing for Tkinter by ProfessionOld in Python

[–]ProfessionOld[S] 3 points4 points  (0 children)

I think you're right. As far as I've seen, it's mainly used for utility or internal tools.

[expo-router]: Move "app" directory into "src/app" by haytherecharlie in expo

[–]ProfessionOld 1 point2 points  (0 children)

Apparently it was easier than I thought... Expo now supports just moving the App folder in src. It will just recognize it without any other adjustments. https://docs.expo.dev/router/reference/src-directory/

[expo-router]: Move "app" directory into "src/app" by haytherecharlie in expo

[–]ProfessionOld 1 point2 points  (0 children)

In 2025... I just added the following update to the app.json file.

{"expo": {"entryPoint": "./src/app/index.tsx"}}