How to get rid of popping command window? #1640
-
Reference can be found in my older post: #1633 But in short, when I run my Python program, it executes the lively.exe, which causes the command window to open and close (or at least that's what I think is happening). This bothers me, so I tried to edit my old code so it executes the lively.exe using a shortcut and thus removing the popping command window, but not it gives me a complicated error message and I have no idea how to make it work. Here are the two relevant lines of code that are causing the issue, I think: Error message: New code: def setWallpaper(path, monitor): def runCommand(args): def getFilePath(filename): def main(dayTime, nightTime):
main(6, 18) `import time def changeProperty(name, value, monitor): def setWallpaper(path, monitor): def runCommand(args): def getVideoFilePath(filename): def main(dayTime, nightTime):
main(6, 20) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I know, I left that out on purpose for you to figure out hehe.. Here is how you hide the window: |
Beta Was this translation helpful? Give feedback.
I know, I left that out on purpose for you to figure out hehe..
Here is how you hide the window:
https://stackoverflow.com/questions/7006238/how-do-i-hide-the-console-when-i-use-os-system-or-subprocess-call