Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a hyperlink in my wx widget which opens linked folder on clicking. Please help me how to build that.
Thanks.
os.system("start C:")
will launch a file window (on windows at least) ... it has nothing to do with wx
unless you are talking about opening a FilePickerDialog?
I have also been informed that
os.system("explorer C:")
would also work
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
I don't know how to start I want to write a code that changes icon size on desktop without mouse click.
I need some help on how to get started and what it takes to gain control of the system.
take the icon and resize it with openCV and use os.system to change the icons
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How do I open an app like Minecraft using os or subprocess? I went through a few videos and none of them worked. Do I just use the name of the app or its location?
For this example, you could use:
subprocess.run(r'"C:\path_to_minecraft\minecraft"',shell=True)
Or if you have Windows shortcuts you add the .lnk extension in the call:
subprocess.run(r'"C:\path_to_minecraft\minecraft.lnk"',shell=True)
this works.
import os
os.system("your app.exe")
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have been making a GUI with pyQt5 and I'm at the point where I need to think about how to save the things the user do in my GUI. For example, if he/she checks a box I want it to be saved until next time they start the GUI.
I have been thinking of using a .ini file, but I'm asking if there is another file type I should be using or is there a function/class in pyQt5.
Sry for my bad English plus I'm on my phone typing.
Ty in advanced.
I would use QSettings, Its part of PyQt/Qt and handles location of your settings/config files.
https://doc.qt.io/qtforpython/PySide2/QtCore/QSettings.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I really want to draw onto an application window.
For example, I want it to display 'Hello World' on the discord window at the top left. Is this possible?
In order to do that, you will need to download themes from internet for discord, maybe with BetterDiscord or something, then in the css file you will need some simple css knowledge about the coordinates/placement, and the text you want to display.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to generate some shortcuts to specific websites using Python. Is it possible for me to do so under Ubuntu? Say If I'd like to create a shortcut to Stack Overflow in Home folder. How can I achieve that using Python?
You could do this :
with open('StackOverflow.desktop', 'w+') as f:
f.write("""[Desktop Entry]
Encoding=UTF-8
Name=Link to Stack Overflow
Type=Link
URL=http://stackoverflow.com/
Icon=text-html
Name[en_US]=StackOverflow
""")
It will create a shortcut on Ubuntu to StackOverflow