Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Menu destroy
Post: RE: Menu destroy

deanhystad keeps asking what I am trying to accomplish with my code. The code I previously posted was made to make it easier to follow. Here is the actual code. Go to addition tables, then threes a...
Heyjoe GUI 5 396 Mar-02-2021, 01:45 AM
    Thread: Menu destroy
Post: Menu destroy

Hello fellow python users: This program produces a menu of green labels and buttons, a menu of red labels and buttons and a purple menu. When the red menu comes up I would like the green menu to dis...
Heyjoe GUI 5 396 Feb-26-2021, 01:46 AM
    Thread: Inheritance
Post: Inheritance

The following code was written primarily by Yoriz. I am trying to see how it words inorder to learn classes and Tkinter. I know something about classes but I have a lot to learn. StartFrame is a ch...
Heyjoe GUI 1 204 Feb-14-2021, 09:19 PM
    Thread: Tkinter & classes
Post: RE: Tkinter & classes

(Feb-13-2021, 04:32 AM)deanhystad Wrote: Use classes when they make sense. An object should have an identity. You should be able to describe not only what it does, but what it is in a few short se...
Heyjoe GUI 6 374 Feb-13-2021, 09:17 PM
    Thread: Tkinter & classes
Post: RE: Tkinter & classes

(Feb-12-2021, 02:54 PM)deanhystad Wrote: What made you think that Frame is not a class? This post, and the post about not making an instance lead me to think you are confused about classes and obje...
Heyjoe GUI 6 374 Feb-12-2021, 10:44 PM
    Thread: Tkinter & classes
Post: Tkinter & classes

The following code was primarily written by Yoriz. I'm using this code to better understand classes. In three of the classes tk.Frame is shown in parentheses. 'At first I thought this was inheritan...
Heyjoe GUI 6 374 Feb-12-2021, 01:53 AM
  Star Thread: Generating menus with classes
Post: Generating menus with classes

Hello fellow Python Users, You need to make an object to use a class. I did make an object in the third line from the last "m=Main(root)# **smile**". However, I don't understand why I was able to...
Heyjoe GUI 2 246 Feb-11-2021, 01:48 AM
    Thread: Buttons don't work
Post: RE: Buttons don't work

Thank you. I changed the title of my thread based on your comments. The lambda seems like it will do exactly what I was trying to do. It is a little confusing though because the lamda seems to have...
Heyjoe GUI 3 315 Jan-20-2021, 01:25 AM
    Thread: Buttons don't work
Post: Buttons don't work

I wrote the following program because I am trying to understand TKinter and classes. I want the code to print "blue square" when I click the blue button. I want it to print "red circle" when I pre...
Heyjoe GUI 3 315 Jan-19-2021, 07:10 PM
    Thread: Get name of command button
Post: RE: Get name of command button

This is how I changed the code based on your answer. It now gives me a m = Main(root) ^ SyntaxError: invalid syntax import tkinter as tk root = tk.Tk) myfont = "helvitica 25" mybg = "light sk...
Heyjoe GUI 3 365 Dec-09-2020, 10:53 PM
    Thread: Get name of command button
Post: Get name of command button

import tkinter as tk root = tk.Tk() myfont = "helvitica 25" mybg = "light sky blue" myheight = 4 mywidth = 60 myheight2 = 6 mywidth2 = 20 myheight3 = 3 mywidth3 = 20 labcol = "spring green" anscol = ...
Heyjoe GUI 3 365 Dec-07-2020, 08:45 PM
    Thread: Class function does not create command button
Post: RE: Class function does not create command button

Changing the geometry to 1000x1000 did work. My next goals was to destroy the first set of buttons. I was able to do this after making a few changes (as seen in the following code) after a bit of t...
Heyjoe GUI 2 480 Aug-22-2020, 08:06 PM
    Thread: Class function does not create command button
Post: Class function does not create command button

Hello Python Users: The following code displays a command button "Click here to start". This command button is supposed to run the sa function. The sa function is supposed to display a new frame a...
Heyjoe GUI 2 480 Aug-22-2020, 02:32 AM
    Thread: Creating a frame with 4 command buttons
Post: RE: Creating a frame with 4 command buttons

Thanks all. I have changed the code and it works. I created this code after watching tutorials on classes and Tkinter. There is still one thing that makes absolutely no sense to me. The second t...
Heyjoe GUI 5 549 Aug-21-2020, 12:52 AM
    Thread: Creating a frame with 4 command buttons
Post: Creating a frame with 4 command buttons

Hello python users: The following code is to create a frame with four command buttons. It does this. However, before it creates the frame with four command buttons, it creates a frame with no butto...
Heyjoe GUI 5 549 Aug-20-2020, 02:40 AM
    Thread: Command button, then more command buttons
Post: RE: Command button, then more command buttons

Dear Python Users: I've added some submenus to the option buttons. 1) First start the program. 2) Press the red "Press here to start button" 5 option buttons will come up. 3) Press option1....
Heyjoe GUI 4 857 Aug-08-2020, 01:21 AM
    Thread: Command button, then more command buttons
Post: RE: Command button, then more command buttons

Thanks I got it to work. A least one website I viewed since reading your answer indicate that wildcard imports are usually considered bad practice.
Heyjoe GUI 4 857 Aug-05-2020, 03:33 PM
    Thread: Command button, then more command buttons
Post: Command button, then more command buttons

I am a beginner trying to learn Tkinter. The objectives of the following code are to 1) Show a red "Press here to start button." 2) After the "Press here to start button is pressed it disappears a...
Heyjoe GUI 4 857 Aug-04-2020, 11:58 PM
    Thread: button command tkinter
Post: RE: button command tkinter

I succeeded in using Partial to select from the menu (see last 2 lines above root.mainloop(). If I select "first color" it prints red and if I select the second color it prints green. I haven't be...
Heyjoe GUI 6 1,638 Jul-30-2020, 06:37 PM
    Thread: button command tkinter
Post: RE: button command tkinter

Thank Yoriz Partial was something I previously thought I should study and now I have studied it. It may take me a while to try to apply it to the code (which is much more complicated than my example...
Heyjoe GUI 6 1,638 Jul-24-2020, 12:55 AM

User Panel Messages

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