Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyw IDLE =/= Non IDLE
#1
hi, is there any "special treatment" for .pyw?
i don't know why if I run pyw file via IDLE, then press F5, the program run normal,
but
when run like exe (double click), some script is not working,
any idea why?

Edit: after some research,
maybe it about "sys.stderr.write",
maybe, I don't know
Reply
#2
The main difference I've seen between running a program in IDLE and running it with Python is that IDLE doesn't quit when the program reaches the end.

Can you describe the difference you see running your program the two ways. Can you post your program?
Reply
#3
@deanhystad
thank you for the reply,
my program is too big and when I try to split it, the code seems fine,
Reply
#4
i think this is the culprit, but i still dont know what to do
import transformers
print(transformers.__version__)
input("press any key to continue...")
the result in IDLE:
4.15.0
press any key to continue...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cann't get locale data from IDLE on macOS roomONmoon 7 1,723 May-14-2024, 06:58 PM
Last Post: roomONmoon
  Why can I not see the code correctly in Python IDLE.? Trump 8 2,522 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
  problem with help(type(self)) in Idle akbarza 1 1,354 Dec-26-2023, 12:31 PM
Last Post: Gribouillis
  save a session in idle akbarza 5 2,142 Nov-06-2023, 08:36 AM
Last Post: snippsat
  [PROBLEM] Removing IDLE from context menu WebSpider 1 1,195 Sep-28-2023, 03:35 PM
Last Post: deanhystad
  Recommendations for IMAP Push/IDLE library MikeFlorida 0 1,944 Jul-15-2023, 05:19 PM
Last Post: MikeFlorida
  What is all the info in the info window in Idle? Pedroski55 3 1,586 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  create a default path with idle to a specific directory greybill 0 1,400 Apr-23-2023, 04:32 AM
Last Post: greybill
  Launch Python IDLE Shell from terminal Pavel_47 5 2,646 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Python Idle won't start totalmachine 9 5,768 Oct-16-2022, 05:57 PM
Last Post: totalmachine

Forum Jump:

User Panel Messages

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