Python Forum
tkinter GUI, problem running seperate files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter GUI, problem running seperate files
#10
(Sep-24-2019, 05:34 PM)Denni Wrote: Are you attempting to double-click the *.py file or are you making an *.exe out of it that you are then trying to launch?

From my understanding (which might not be spot on) if you are doing the former just associating the file extension with the interpreter does not mean it is going to launch it as you feel it should -- for that is not how the interpreter works. You actually need to associate double-click with "running" a python script from within an interpreter which is different than what the describe methodology is actually doing.

Some where along they way you have to launch something that the connects with the interpreter in a way that will allow you then launch a program from within the interpreter's umbrella


program = allinone.py

I'm using a hotkey in Windows on the shortcut I put in the startup folder so that it works after reboot. I bind the shortcut to F8 and the program runs when I press it. I can move around inside the program, all subwindows work but once I try to use a function that opens another .py / .pyw file, nothing happens. If i run the program through my editor, everything works.
If I double click "allinone.py" the program starts and the GUI i created shows up.

I don't fully understand your explaination. I don't know how the interpreter works behind the scenes in Windows, but it seems to start every .py file I double click and run the code inside.

I can upload a short video of it if my explaination is bad.
Reply


Messages In This Thread
RE: tkinter GUI, problem running seperate files - by fishglue - Sep-25-2019, 02:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Help running a loop inside a tkinter frame Konstantin23 3 1,795 Aug-10-2023, 11:41 AM
Last Post: Konstantin23
  Why is the program not running? Is there a logical or syntax problem? behi00 10 2,347 Apr-01-2023, 12:50 AM
Last Post: woooee
  [Tkinter] Have tkinter button toggle on and off a continuously running function AnotherSam 5 5,199 Oct-01-2021, 05:00 PM
Last Post: Yoriz
  Python3 tkinter radiobutton problem Nick_tkinter 14 6,403 Feb-15-2021, 11:01 PM
Last Post: Nick_tkinter
  tkinter python button position problem Nick_tkinter 3 3,709 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  [Tkinter] ClockIn/Out tkinter problem Maryan 2 2,326 Oct-12-2020, 03:42 AM
Last Post: joe_momma
  tkinter| listbox.insert problem Maryan 3 3,682 Sep-29-2020, 05:34 PM
Last Post: Yoriz
  Tkinter problem DPaul 6 4,336 May-28-2020, 03:40 PM
Last Post: DPaul
  [Tkinter] Tkinter - I have problem after import varaible or function from aGUI to script johnjh 2 2,682 Apr-17-2020, 08:12 PM
Last Post: johnjh
  [Tkinter] Problem with tkinter when creating .exe file Jan_97 2 4,731 Feb-27-2020, 05:17 PM
Last Post: Jan_97

Forum Jump:

User Panel Messages

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