Hello ,
I am trying to run a command which should open up a File Select Windows widget in Kivy. Kivy has the non-native FileChooser class which is not user friendly in my perspective. My plan is to use a subprocess call to run a powershell script which would open a File Select Dialog.
It is opening when I run
Img1- https://ibb.co/1G5SKMF
Img2 - https://ibb.co/bR44JqK
I am trying to run a command which should open up a File Select Windows widget in Kivy. Kivy has the non-native FileChooser class which is not user friendly in my perspective. My plan is to use a subprocess call to run a powershell script which would open a File Select Dialog.
class UserInfoWidget(BoxLayout): def browse_file(self): p = subprocess.Popen(["powershell.exe", '"' + os.path.join(os.getcwd(), "filebrowser.ps1")+'"'], stdout=sys.stdout) p.communicate()Clicking the button once the kivy gui is launched gives the default statements in the shell and then when button is clicked gives
C:\Users\Dell\OneDrive\Desktop\New folder\filebrowser.ps1
in the shell.Why is the File Dialog not opening?It is opening when I run
powershell.exe ./filebrowser.ps1
in windows powershell or command prompt. Img1- https://ibb.co/1G5SKMF
Img2 - https://ibb.co/bR44JqK