I'm trying to open the DellCommandUpdate with python in full screen. I can get the application to open with the first code but couldn't figure out how to maximize the screen. Someone suggested trying sub process. It comes up as a black window similar to cmd.
import os
os.startfile("C:\Program Files (x86)\Dell\CommandUpdate\DellCommandUpdate.exe")
import subprocess
subprocess.call(["cmd", "/c", "start", "/max", "C:\Program Files (x86)\Dell\CommandUpdate\DellCommandUpdate.exe"])
The goal for this is to be able to open the program to be able to click update. I'm not sure if there is something like selenium but for desktop apps or how I would program to automate this
Related
I am using selenium through python to automate a task - open a webpage, enter some text, click a button.
Now, once this is done, I want the browser to stay open and all the python files, the edgedriver.exe cmd window, and any other process ran by the python script to close. I want the browser to be loaded like a normal browser that we load manually.
My query:
Can we stop the browser from closing when I close python program as well as the edgebrowser.exe? I have added this to my code, but this doesn't stop browser from closing once all other windows are closed.
code:
from selenium.webdriver.edge.options import Options
edge_options = Options()
edge_options.add_experimental_option("detach", True)
Using the detach option, I may be able to keep browser running with python closed. But I also do not want the edgebrowser.exe command window on the screen. Can we do that?
Can we remove that line below the address line saying "Your browser is being controlled by an automation test software". I want the browser window to look like it does when we open it using the app/program shortcut.
You can refer to this link to hide the command window. The code only works on selenium version 4.0.0 or higher.
To remove the line "Your browser is being controlled by an automation test software", you can try to add these lines of code:
edge_options.add_argument("--remote-debugging-port=9222")
edge_options.add_experimental_option('useAutomationExtension', False)
edge_options.add_experimental_option("excludeSwitches", ["enable-automation"])
I'm pretty new to coding so bear with me. I coded a simple program in python 3 and created an .exe file with pyinstaller. I noticed that when i open the .exe, the cmd window opens as well and runs in the background. How would I go about running it silently, so just my window opens up. thanks for any insight
Ok so easygui in python on repl.it isn't working as it should.
So whenever it runs I get in red text
Xopendisplay(MAGIC)
Must DL Open Symbol
There is no blue background. It is just black.
Can't drag dialogs.
Heres my code
import easygui
easygui.textbox()
Interpreter webservers like repl.it don't provide a display to use. Basically, in Linux, there's a process called X Server that is responsible for drawing on a connected display. This process doesn't have to run nor does a physical display have to be connected. Both are true for repl.it and why GUI applications won't work on it.
It will not connect to your display over the web.
I'm trying to clear the screen in my Idle text editor (the default one that comes with python (and is basically command prompt anyway).
I have had this problem for a while now and i've searched just about every corner of the web but nothing has truly answered my problem.
import subprocess
import subprocess as sp
import os
os.system('cls')
does not work
Ctrl + L does not work
clearing modules also do not work
Using this for loading screens, animations etc... would be a dream com true so if anyone can find a way to do this it would be much appreciated.
I'm using Python3 on ubuntu gnome 16.04.
I wrote a whole UI project using tkinter and now I'm stuck because I cant find a way to solve the next issue:
My question:
is there any way to set a window on the bottom of all other windows using tkinter?
so that when I press 'win' + 'd' shortcut and go back to the desktop I will see my widget running?
edit:
If tkinter does not support that, I would be glad to hear other solutions
to make my widget run on the bottom of other windows, in a way that my main GUI library will still be tkinter (I don't want to refactor all my project because on that) maybe adding bash commands that pin my window to the desktop, maybe using some other python window attributes libraries.