Re: Jack Jansen - Question on Python Launcher

Tom Dossis <[email protected]> Thu, 3 Jun 2021 05:27:05 +1000
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============4523703125870168847==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_CAE6EE74-CA34-4734-A579-65854A9EC12E"


--Apple-Mail=_CAE6EE74-CA34-4734-A579-65854A9EC12E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hey Guy,

=46rom Finder, right click on your `.py` file, then press the Option =
key.
You should see an =E2=80=98Always open with=E2=80=A6=E2=80=99 menu item.
=46rom that, select a Python Launcher.
A window will then pop up with a customisation dialog.
This has an option to =E2=80=98Run in a Terminal Window=E2=80=99.

Good Luck.

> On 31 May 2021, at 3:30 am, Guy DeStefano <[email protected]> =
wrote:
>=20
>=20
> Sorry to bother you, but I have one question that I cannot find an =
answer to, could you please help.  Am very new to Python3 and have =
written a small program that is my base for my learning Python3.  All is =
perfect except,  when I double click my program the .py file, it works =
great except that it calls in the Python Launcher, and when I exit my =
program, the preferences box for Python Launcher and the Icon of the =
launcher still remain on the screen.  I have to manually close the =
python launcher.  Can this be done programmatically, I exit with =
sys.exit(0). I am using tkinter in the program, along with python3.9.5, =
on an Apple Mac computer.  This may not be the proper place for this =
question, if not, I apologize and please direct me where to go as I have =
been googling for days. Thanks in advance. Any help will be greatly =
appreciated.
> I have just noticed that python3 -V states python 3.9.5, and looking =
at the python launcher box it states Version 3.10.0b1(3.10.0b1) Is this =
something I am doing wrong.
>=20
> [email protected] <mailto:[email protected]>
> Guy DeStefano
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG


--Apple-Mail=_CAE6EE74-CA34-4734-A579-65854A9EC12E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hey =
Guy,<div class=3D""><br class=3D""></div><div class=3D"">=46rom Finder, =
right click on your `.py` file, then press the Option key.</div><div =
class=3D"">You should see an =E2=80=98Always open with=E2=80=A6=E2=80=99 =
menu item.</div><div class=3D"">=46rom that, select a Python =
Launcher.</div><div class=3D"">A window will then pop up with a =
customisation dialog.</div><div class=3D"">This has an option to =E2=80=98=
Run in a Terminal Window=E2=80=99.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Good Luck.</div><div class=3D""><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 31 =
May 2021, at 3:30 am, Guy DeStefano &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><div class=3D""><div dir=3D"ltr" class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div dir=3D"ltr" class=3D""><br =
class=3D"">Sorry to bother you, but I have one question that I cannot =
find an answer to, could you please help.&nbsp; Am very new to Python3 =
and have written a small program that is my base for my learning =
Python3.&nbsp; All is perfect except, &nbsp;when I double click my =
program the .py file, it works great except that it calls in the Python =
Launcher, and when I exit my program, the preferences box for Python =
Launcher and the Icon of the launcher still remain on the screen.&nbsp; =
I have to manually close the python launcher.&nbsp; Can this be done =
programmatically, I exit with sys.exit(0). I am using tkinter in the =
program, along with python3.9.5, on an Apple Mac computer.&nbsp; This =
may not be the proper place for this question, if not, I apologize and =
please direct me where to go as I have been googling for days. Thanks in =
advance. Any help will be greatly appreciated.<br class=3D"">I have just =
noticed that python3 -V states python 3.9.5, and looking at the python =
launcher box it states Version 3.10.0b1(3.10.0b1) Is this something I am =
doing wrong.</div><div dir=3D"ltr" class=3D""><br class=3D""><a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D"">Guy =
DeStefano</div></div></div></div>
_______________________________________________<br =
class=3D"">Pythonmac-SIG maillist &nbsp;- &nbsp;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><a =
href=3D"https://mail.python.org/mailman/listinfo/pythonmac-sig" =
class=3D"">https://mail.python.org/mailman/listinfo/pythonmac-sig</a><br =
class=3D"">unsubscribe: =
https://mail.python.org/mailman/options/Pythonmac-SIG<br =
class=3D""></div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_CAE6EE74-CA34-4734-A579-65854A9EC12E--

--===============4523703125870168847==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--===============4523703125870168847==--