Hiding console on start

4,739 views
Skip to first unread message

Salvatore DI DIO

unread,
Jul 1, 2012, 6:59:08 AM7/1/12
to kivy-...@googlegroups.com
Hello,

Thanks for this great project.
All works fine when packging with PyInstaller.

Is there a way to hide or minimise the console on start ?

Regards

Salvatore

Salvatore DI DIO

unread,
Jul 1, 2012, 9:45:09 AM7/1/12
to kivy-...@googlegroups.com
Excuse me as always "read the doc" :-)

'--noconsole' 

Thanks again

engicri

unread,
Oct 12, 2012, 7:56:55 AM10/12/12
to kivy-...@googlegroups.com
Hi.

I would reduce to icon the console windows at the start of kivy app, before running. You seems to have got solution in the documentation but i didn't find anything about this issue. Could you suggest me where the solution is?

Thank you very much.
Cristina

Gabriel Pettier

unread,
Oct 12, 2012, 8:00:37 AM10/12/12
to kivy-...@googlegroups.com
I think you should try to rename your .py file to .pyw, i believe, on
windows, that causes the console to stay hidden.
> --
>
>

Cristina Carletti

unread,
Oct 12, 2012, 8:23:02 AM10/12/12
to kivy-...@googlegroups.com
Thank for your quick answer.

Renaming the file with extension .pyw causes the shell window to
appear behind the app windows. It could be a solution but it would be
better to have the shell window reduced to icon instead to be hidden
behind the app windows.

Could you suggest me any other way to obtain that.

Thank again,
Cristina

2012/10/12 Gabriel Pettier <gabriel...@gmail.com>:
> --
>
>



--
Dr.Cristina Carletti, PhD
via Modica,2 - 00182 Roma (Italy)
Mobile: +39 333 8433099

Eric Gaudet

unread,
Oct 12, 2012, 4:59:09 PM10/12/12
to kivy-...@googlegroups.com
I think the problem is that kivy.bat always starts python.exe. It should start pythonw.exe. You can try copying kivy.bat to a new kivyw.bat, then edit kivyw.bat and change the line with python.exe to pythonw.exe. I didn't try that myself, and I'm not sure the if the console is open by python or by kivy.bat.

Mathieu Virbel

unread,
Oct 12, 2012, 6:05:00 PM10/12/12
to kivy-...@googlegroups.com
No, the user is asking with PyInstaller, not with kivy.bat.
Kivy.bat is for development, PyInstaller for deploy.

--noconsole is an option of PyInstaller
or you can add "console=0" in the EXE() method of the spec file.

It's documented in
http://www.pyinstaller.org/export/v2.0/project/doc/Manual.html?format=raw#exe


Le 12/10/2012 22:59, Eric Gaudet a �crit :
> --
>
>

fallrisk

unread,
May 16, 2013, 3:22:58 AM5/16/13
to kivy-...@googlegroups.com
As of Kivy 1.7.0 setting the console parameter to False from its default True removes the shell (console) from being displayed. This removal is only for packaged Kivy programs. Inside the .spec file is a variable called exe. It has a parameter named console. I followed the steps at <http://kivy.org/docs/guide/packaging-windows.html> to create my spec file and then the exe. Upon clicking the executable (.exe file) I get no shell (console).
Reply all
Reply to author
Forward
0 new messages