Python Forum
Thread Rating:
  • 5 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Requests
#60
(Sep-06-2020, 04:17 PM)Larz60+ Wrote: Classes work best with tkinter, one reason is the ample use of forward references, for example a button press event,
since all methods become available when the class is instantiated, forward referencing is never a problem.
Let's take that as an example. If I have a class that has several tkinter widgets in a specific frame. One of them is a combo box that is disabled and empty except for a placeholder. In another frame I have a button with an onclick event bound to it. When that button is clicked the what I want to have happen is that a database query will be run with parameters from the second frame (where the button I clicked is located) and one of those will update the combobox in the first frame with the applicable choices. In another case I have to read the state of a bunch of checkboxes and based on them add SELECT clauses in a query that will diusplay only certain fields. What I can't find are tutorials on how to implement the actions of read the contents of the first frame and update some of the items based on results in the second frame.

It's the lack of specific detailed examples that I wish were available.

(Sep-06-2020, 04:17 PM)Larz60+ Wrote: Finally, I'll mention that although it's possible to write large GUI applications with tkinter, it's difficult at best.
I have done it, but it's many times easier with wxpython which is much more robust. There's also Qt (Qt5 being latest version).
I eliminated Qt due to licensing issues. It won't work in my application.

Most of the stuff I had found on wxpython indicated it was not particularly robust on Macintosh computers. Since the majority of the users are on a Mac that is a big issue. The app is supposed to work on all 3 major platforms, Mac, Linux and Windows but the focus is Mac first, Linux second and if it works on Windows great. If I am mistaken I'd love some references that have good examples. A lot of what was out on the web that I found initially said it wouldn't work with Python 3.7 but I've since found out that is wrong.

I'm not sure what is considered a large GUI application. I have what I think are fairly simple requirements but maybe I'm wrong about that have several top level windows with various input and output widgets on them. In most cases a single window is self contained, I don't usually need to pass data to another window. There are a coouple of cases where that happens. While the nuts and bolts of what is displayed vary the basic functions do not. User selects a set of display items, and a set of limiting criteria. A query into the database is forumulated from those inputs and the result is displayed in a frame on the window. Further selection of individual records and then applying actions that will edit a single or group of them or writing reports are the other major functions.
Reply


Messages In This Thread
Tutorial Requests - by metulburr - Nov-04-2016, 06:35 PM
RE: Tutorial Requests - by Larz60+ - Nov-05-2016, 05:45 AM
RE: Tutorial Requests - by wavic - Nov-08-2016, 06:22 PM
RE: Tutorial Requests - by nilamo - Nov-08-2016, 06:23 PM
RE: Tutorial Requests - by PaulMorrey - Dec-08-2016, 07:32 PM
RE: Tutorial Requests - by phread - Oct-25-2017, 09:18 PM
RE: Tutorial Requests - by nilamo - Dec-08-2016, 07:37 PM
RE: Tutorial Requests - by PaulMorrey - Dec-08-2016, 08:38 PM
RE: Tutorial Requests - by metulburr - Dec-08-2016, 10:13 PM
RE: Tutorial Requests - by Larz60+ - Dec-08-2016, 10:53 PM
RE: Tutorial Requests - by Kebap - Apr-07-2017, 02:15 PM
RE: Tutorial Requests - by nilamo - Apr-07-2017, 02:20 PM
RE: Tutorial Requests - by sparkz_alot - Apr-07-2017, 03:17 PM
RE: Tutorial Requests - by zivoni - Apr-07-2017, 06:55 PM
RE: Tutorial Requests - by nilamo - Apr-07-2017, 07:08 PM
RE: Tutorial Requests - by nilamo - May-09-2017, 06:05 PM
RE: Tutorial Requests - by snippsat - May-09-2017, 08:48 PM
RE: Tutorial Requests - by wavic - May-26-2017, 04:24 PM
RE: Tutorial Requests - by sparkz_alot - Jul-08-2017, 01:37 PM
RE: Tutorial Requests - by ichabod801 - Jul-08-2017, 02:19 PM
RE: Tutorial Requests - by sparkz_alot - Jul-08-2017, 11:25 PM
RE: Tutorial Requests - by nilamo - Jul-10-2017, 06:33 PM
RE: Tutorial Requests - by Larz60+ - Jul-10-2017, 09:19 PM
RE: Tutorial Requests - by j.crater - Jul-12-2017, 07:16 AM
RE: Tutorial Requests - by nilamo - Jul-10-2017, 09:52 PM
RE: Tutorial Requests - by Larz60+ - Jul-11-2017, 12:22 AM
RE: Tutorial Requests - by monstertut - Jul-11-2017, 10:46 AM
RE: Tutorial Requests - by metulburr - Oct-23-2017, 11:53 PM
RE: Tutorial Requests - by snippsat - Oct-25-2017, 08:47 PM
RE: Tutorial Requests - by sparkz_alot - Oct-26-2017, 01:12 PM
RE: Tutorial Requests - by BlackHeart - Nov-10-2017, 06:45 AM
RE: Tutorial Requests - by nilamo - Nov-12-2017, 06:56 PM
RE: Tutorial Requests - by BlackHeart - Nov-13-2017, 09:14 PM
RE: Tutorial Requests - by sparkz_alot - Dec-20-2017, 03:36 PM
RE: Tutorial Requests - by NarutoKD - Jun-07-2018, 12:09 PM
RE: Tutorial Requests - by Larz60+ - Jun-07-2018, 12:18 PM
RE: Tutorial Requests - by NarutoKD - Jun-07-2018, 12:32 PM
RE: Tutorial Requests - by j.crater - Aug-14-2018, 08:24 PM
RE: Tutorial Requests - by snippsat - Aug-14-2018, 09:01 PM
RE: Tutorial Requests - by j.crater - Aug-14-2018, 09:06 PM
RE: Tutorial Requests - by marienbad - Oct-17-2018, 04:46 PM
RE: Tutorial Requests - by Larz60+ - Oct-17-2018, 07:23 PM
RE: Tutorial Requests - by metulburr - Jan-12-2019, 11:29 PM
RE: Tutorial Requests - by saruque - Apr-23-2019, 05:31 PM
RE: Tutorial Requests - by Maheshsharma - Sep-14-2019, 10:09 AM
RE: Tutorial Requests - by metulburr - Sep-14-2019, 10:21 AM
RE: Tutorial Requests - by Ankit79 - Oct-08-2019, 05:11 AM
RE: Tutorial Requests - by Evil_Patrick - Nov-23-2019, 09:18 AM
RE: Tutorial Requests - by nilamo - Dec-09-2019, 05:29 PM
RE: Tutorial Requests - by robbyq - Jan-17-2020, 11:56 PM
RE: Tutorial Requests - by Larz60+ - Jan-18-2020, 04:24 AM
RE: Tutorial Requests - by t4keheart - Feb-25-2020, 02:58 PM
RE: Tutorial Requests - by Eyssant - Apr-29-2020, 05:32 AM
RE: Tutorial Requests - by pavanbaddi911 - Apr-29-2020, 01:01 PM
RE: Tutorial Requests - by menator01 - May-06-2020, 04:56 PM
RE: Tutorial Requests - by sjkelleyjr - Jun-14-2020, 02:52 PM
RE: Tutorial Requests - by OogieM - Sep-06-2020, 01:46 PM
RE: Tutorial Requests - by Larz60+ - Sep-06-2020, 04:17 PM
RE: Tutorial Requests - by OogieM - Sep-07-2020, 08:37 PM
RE: Tutorial Requests - by singletonamos50 - Dec-13-2020, 04:09 PM
[split] pylogger - by sunilbhatraju - Dec-20-2017, 06:50 AM

Forum Jump:

User Panel Messages

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