Kivy not show console on windows without packaging - python-3.x

I want to run my python 3 kivy script on windows without the console window showing but .pyw prevents kivy running at all.
I very new to programming and packaging the script is beyond me. As I haven't understand a tenth of the docs for pyinstaller etc.
Is there any way to do this without packaging?

Related

ipywidgets working in JupyterLab but do not appear in Voila

Ok, this is my first post.
I've been working on building a dashboard for my students, to let them work with economic models interactively. I've used JupyterLab for years and have some experience with ipywidgets. Recently while looking for a way to make my code shareable I ran into Voila, which seems like an excellent way to dashboard directly from a notebook.
Here's the problem I'm running into: I have widgets running just fine in JupyterLab but when I render them with Voila (both the extension and from the cli) the widgets do not appear. I tried using a few other packages: ipyleaflet does not appear either, but plotly and pandas printouts do.
I haven't been able to find similar cases so any help would be appreciated.
And for context, I'm running the latest version of JupyterLab on Zorin OS, and have reproduced the issue in Chrome and Firefox, with both Jupyter Lab and Notebook.

Eel and python - how can hide cmd window when the app is running

I have created a simple html page and used it in a python app with the help of Eel
Everything works fine but I want to hide the cmd window that opens up when the python app is running and just show the html page that eel is opening. how can I achieve this? is this an eel specific matter or its a python issue?
thanks.
I have tried to do it with .pyw extension but in that case the html will not open up either.
It is normal, because for each program the python console will appear, because you are running it from the python launcher or cmd
If you want to hide it, you have to compile it and select to hide the console in the setup to do that you can use the module auto-py-to-exe (which, btw. is made with eel). It uses pyinstaler. You can also use pyinstaller directly.

Qt Designer crashes using QWebEngineView

Qt Designer (5.11.2) crashes on selecting the QWebEngineView-Widget.
I am creating a dialogform for including it in QGIS 3 as .ui file. In the form I want to display a website by using the QWebEngineView.
Sadly I am not able to drag the widget inside the dialog window, because Qt Designer crashes instantly on clicking the QWebEngineView button. The issue appears with Qt Designer provided with QGIS 3.3.0 as well as QGIS 3.2.3.
In the Windows Event Viewer I get the errorcode 0xC0000022.
Is someone stuggling with the same issue and has any ideas for solving it?
I do have the same issue without any use i know about qgis,
Only qtdesigner, that instantly crashes when clicking qtwebs..Ico
Looking everywhere for it, i don't find anything clear.
Bad installs
Missing files
Conflits between envs...
I do have:
Ubuntu 20.04
Python 3.9.9 with classic idle
Qt 5.12.2
Pyqt5 as installed with apt-get
(Even qtwebengine, cause i couldn't install or compile simple in any other without a strong internet connection)

openjdk shows proper application icon only when started from terminal

I'm using openJDK on Ubuntu 12.04 LTS and I have strange problem with starting GUI applications that are packed in jar archive. When I start application from terminal with "java -jar archivename.jar" it shows proper application icon in side panel. But when I start it from nautilus by double clicking archive icon it shows standard Duke icon.
It also shows icon when I start application by double-clicking shell script from nautilus.
Script content is simple:
#!/bin/bash
java -jar archievename.jar
Is this some bug, or what is the problem? How can I make it show application icon when started from nautilus too, but without script?
It's not big problem to be honest, because I think that using script to start application is often way to do it in linux, even for native applications, written in C++.
I'm just curious.
Thank you.
You can probably make a desktop entry and set the icon properly. See this question about running a jar file.

Running PyQt4 demos --- How?

I have recently downloaded and installed the latest release of PyQt4 for Windows. I have tested some simple PyQt4 examples and have seen no obvious problems. However, I am unable to execute the demos when I follow the directions given in the readme file of the demos:
Finding the PyQt Examples and Demos launcher
============================================
On Windows:
The launcher can be accessed via the Windows Start menu. Select the menu
entry entitled "Examples and Demos" entry in the submenu containing PyQt4.
I have no problem finding and clicking on the "Examples and Demos" entry; but, I am never able to see a demo actually execute. I am using Windows Vista (32-bit) with Python 2.6?
Try to go to <PythonInstallation>\Lib\site-packages\PyQt4\examples in a cmd prompt and see if you can run the examples directly from there. That should at least give you some error messages if it doesn't work.
The louncher should be runnable from demos\qtdemo\qtdemo.pyw, but you also can run the single examples without the louncer.

Resources