Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Buttons not working in tabs
Post: RE: Buttons not working in tabs

(May-02-2022, 04:25 PM)menator01 Wrote: command=create_child("Button 2 clicked") This is causing it to execute early. do command=lambda:create_child('Button 2 Clicked') Thanks, that worked.
kenwatts275 General Coding Help 2 1,380 May-02-2022, 04:45 PM
    Thread: Buttons not working in tabs
Post: Buttons not working in tabs

I am trying to put buttons on my tabs. The buttons appear, but when I click them, nothing happens. It looks like the code for the buttons gets run when I run the program, but not when I click on the b...
kenwatts275 General Coding Help 2 1,380 May-02-2022, 02:45 PM
    Thread: How to reference the relative directory when creating a photoimage
Post: RE: How to reference the relative directory when c...

(May-17-2021, 07:30 AM)menator01 Wrote: You could try something like import os img_dir =os.getcwd() image = img_dir(f'images/my_image.png') When I use os.getcwd() it returns "/home/kwatt", not "C:/...
kenwatts275 General Coding Help 3 6,397 May-18-2021, 03:12 PM
    Thread: How to reference the relative directory when creating a photoimage
Post: How to reference the relative directory when creat...

Hello everyone. I am writing a card game and I am trying to put an image of the card suit (clubs, diamonds, hearts or spades) on a button. I have the images saved in a subdirectory called "images". To...
kenwatts275 General Coding Help 3 6,397 May-17-2021, 02:51 AM
    Thread: How to dynamically change radiobutton text
Post: How to dynamically change radiobutton text

Hello everybody. I am trying to dynamically change the text of a radio button. Below is an example program. When you run it, when you click on the "Go" button, the text of the radiobutton is supposed ...
kenwatts275 GUI 2 3,373 Mar-04-2021, 11:44 PM
    Thread: Unable pass the proper row number to Menubutton command
Post: RE: Unable pass the proper row number to Menubutto...

Thanks deanhystad. It worked. Easier than I thought.
kenwatts275 GUI 2 1,731 Jul-19-2020, 11:46 AM
    Thread: Unable pass the proper row number to Menubutton command
Post: Unable pass the proper row number to Menubutton co...

Hi all, I am trying to make a grid of multiselect entry boxes using Menubutton widgets. Below is the example program I put together. When the printValues function is called, the value 3 is always pass...
kenwatts275 GUI 2 1,731 Jul-19-2020, 01:51 AM
    Thread: Column headers not aligning properly with table
Post: RE: Column headers not aligning properly with tabl...

Thanks for the response. Setting the columns as uniform for both frames seems to fix the header alignment problem. However, when I added a scrollbar to the second frame, the header alignment problem c...
kenwatts275 GUI 3 3,533 Jul-12-2020, 03:02 AM
    Thread: Column headers not aligning properly with table
Post: Column headers not aligning properly with table

Hello all, I cannot seem to get the column headers to align properly with my table. The column headers have to be in a separate frame than the table, because I will be adding a scrollbar on the table....
kenwatts275 GUI 3 3,533 Jul-11-2020, 08:01 PM
    Thread: Checkbuttons always come up as black boxes regardless of the state
Post: RE: Checkbuttons always come up as black boxes reg...

WOW!!! Menator01, you are awesome **smile** Thanks!!!
kenwatts275 General Coding Help 5 4,732 Jul-07-2020, 08:00 PM
    Thread: Checkbuttons always come up as black boxes regardless of the state
Post: RE: Checkbuttons always come up as black boxes reg...

Thank you for your response. I figured out how to fix the problem. I need to create bogus variables and assign them to the checkbutton widgets. I cannot use the same variable name for all the checkbut...
kenwatts275 General Coding Help 5 4,732 Jul-07-2020, 03:02 PM
    Thread: Checkbuttons always come up as black boxes regardless of the state
Post: Checkbuttons always come up as black boxes regardl...

Hello all, I am writing a program that utilizes a large array of checkbuttons. When run, the user clicks on the checkbuttons that they want to select, then upon clicking the Go button, it saves the st...
kenwatts275 General Coding Help 5 4,732 Jul-06-2020, 11:21 PM
    Thread: Connection timed out error when connecting to SQL server
Post: Connection timed out error when connecting to SQL ...

Hello all, I am trying to connect to MariaDB on my LINUX server from my PC using the Python mysql.connector. I can connect to the server via ssh so I know the IP address (10.0.0.117) is correct. When ...
kenwatts275 General Coding Help 2 3,345 Jun-02-2020, 07:15 PM
    Thread: How to call a routine in another Python program
Post: How to call a routine in another Python program

Hello all, The following two programs, test31.py and test32.py have a pre_entry and post_entry routines. # test31.py def pre_entry(values): print("Pre Entry test31") for x in values: ...
kenwatts275 General Coding Help 1 1,652 May-17-2020, 04:12 PM
    Thread: Can somebody take a look at my program and make suggestions
Post: Can somebody take a look at my program and make su...

Hello all, I wrote a few modules in Python and I was wondering if somebody could review them. The name of the software is Database Table Maker and it is written completely in Python. The Youtube video...
kenwatts275 Bar 1 1,689 May-07-2020, 04:29 AM
    Thread: Closing window on button click not working
Post: RE: Closing window on button click not working

Thank you for your responses. I put parens after the new_window.destroy in my save_columns routine and that fixed the problem. I tried putting parens after the new_window.destroy on my Exit button com...
kenwatts275 GUI 4 3,808 May-03-2020, 01:50 PM
    Thread: Closing window on button click not working
Post: Closing window on button click not working

Hello all, I am trying to close/destroy a toplevel window via a button. When I click on the columns_button, a new toplevel window is created with an save_button and exit_button. When I click the exit_...
kenwatts275 GUI 4 3,808 Apr-29-2020, 03:30 PM
    Thread: tkinter.TclError: bad window path name
Post: RE: tkinter.TclError: bad window path name

Thanks for your responses. I added "column_values.clear()" before the for loop and that seems to have fixed the problem. Thanks.
kenwatts275 GUI 3 14,851 Apr-26-2020, 08:16 PM
    Thread: tkinter.TclError: bad window path name
Post: tkinter.TclError: bad window path name

Hi all, I am getting the error _tkinter.TclError: bad window path name ".!toplevel.!frame.!combobox When I click on the "Columns" button the first time, it opens up a new window no problem. When I cli...
kenwatts275 GUI 3 14,851 Apr-25-2020, 08:48 PM
    Thread: How to retreive the grid location of an Entry widget
Post: RE: How to retreive the grid location of an Entry ...

So what must be done to fix the program? Which line of code is the problem?
kenwatts275 GUI 7 4,640 Apr-24-2020, 10:53 PM

User Panel Messages

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