Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: tkinter and image paths
Post: RE: tkinter and image paths

If it is in the same directory, you should be able to just refer to the file by its name "image.png" (no need for the './' in front of it).
Riddle GUI 2 3,529 Apr-14-2020, 06:06 PM
    Thread: Using Pygame within Tkinter GUI
Post: RE: Using Pygame within Tkinter GUI

Thank you!
Riddle Game Development 2 3,073 Apr-11-2020, 03:58 PM
    Thread: Using Pygame within Tkinter GUI
Post: Using Pygame within Tkinter GUI

I have been having fun coding small 'games' for my children, for practice, and I have been using Tkinter for my GUI. All of my 'games' have been written in Python/Tkinter so far, and they are simple '...
Riddle Game Development 2 3,073 Apr-11-2020, 02:29 PM
    Thread: How to add multiple frames to main window
Post: RE: How to add multiple frames to main window

Sorry, I am at a loss. Maybe someone else can help. Personally, when things like this happen, I try to find out where the issue is by adding little things to the code here and there. For example, it ...
Riddle GUI 13 8,024 Apr-10-2020, 08:21 PM
    Thread: How to add multiple frames to main window
Post: RE: How to add multiple frames to main window

I am at a loss. If I run that exact same code, it works with no errors. Did you try to copy and paste my code into a new file, just to see if it works? Maybe it is a minor difference in code that you...
Riddle GUI 13 8,024 Apr-10-2020, 04:08 PM
    Thread: Is it possible to automate button generation in tkinter?
Post: RE: Is it possible to automate button generation i...

Great! I actually just struggled with that same problem earlier today.
Riddle GUI 3 2,424 Apr-10-2020, 12:14 PM
    Thread: Is it possible to automate button generation in tkinter?
Post: RE: Is it possible to automate button generation i...

Change “lambda:” to “lambda i=i:” and it should work (sorry, I cannot test it now).
Riddle GUI 3 2,424 Apr-10-2020, 02:41 AM
    Thread: How to add multiple frames to main window
Post: RE: How to add multiple frames to main window

When you define the Widgets in the WinchFrame Class, you have to assign them to the Frame. Otherwise, they get assigned to the main window, and put in the grid there. All you have to do is add "self" ...
Riddle GUI 13 8,024 Apr-09-2020, 09:22 PM
    Thread: Program with Multiple Windows - how to use Class:
Post: RE: Program with Multiple Windows - how to use Cla...

Edit: I was able to fix the problem for Lines 98 and 123 by adding an "i=i" after the "lambda".
Riddle GUI 1 2,985 Apr-09-2020, 08:30 PM
    Thread: Program with Multiple Windows - how to use Class:
Post: Program with Multiple Windows - how to use Class:

Hi everyone, This is my first post on this forum. I have been trying to learn Tkinter and find answers via web searches, but it only got me so far. I am writing code to create multiple windows, and th...
Riddle GUI 1 2,985 Apr-09-2020, 06:13 PM

User Panel Messages

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