Problem in saving folder path using QFileDailog - PYQT - pyqt5

I created a button(QPushButton) which helps me to browse and select folder location and save that path into the box(QlinEdit) using PYQT5.
Here is the UI
Problem
I'm able to browse the path and save it to a variable. But when I
close the program (.py) and run it again then the location path will
get change(empty). So, I have to browse and save it again and again
whenever I run the program.
Is there any solution or way to just save it once and it will remains the same always ???

Related

SetPreference in Edge for change directory download

I need to change the directory where I'll save a file coming from the download after clicking a link. I was able to find and click on the link, but I need to set the location and name of the file.
I'm using VBA

Xcode "Building" a Project

Honestly, I don't fully understand my question, but hopefully I can still be fairly clear about it.
I just wrote a simple project in Objective-C/Xcode. It looks like Xcode generated an executable in a folder called "Debug" and when I double-click on it, it opens a terminal window and runs fine. However, while running, it reads from a text file in the same directory that it's in. So if I want move the executable to a different location, I also have to move the text file to the same location or it won't be able to find the text file.
My question is... when I download an application on my computer (like Google Chrome or Evernote), it comes as its own file and I can place it in any directory I like; there are no associated files I have to move whenever I move the "executable". Is there a way to generate a clean application like this using Xcode?

Intellij: javafx application icon

How to set default application bootstrapper(?) icon, builded by Intellij?
I think you are asking how to change the icon of an exe file.
First if you do not have the ico file get the picture you want from google and then convert it into an ico file. using: "http://convertico.com/"
I googled how to modify an exe file and actually modified the icon of an exe file from this link:
http://www.howtogeek.com/75983/stupid-geek-tricks-how-to-modify-the-icon-of-an-.exe-file/
read the above link and go through the steps for full solution.
it uses resource hacker which seems pretty well known and used.
but...
if you get access denied:
"I ended up changing googlechrome icon but was receiving access denied. So i saved as googlechrome1 on my desktop. renamed to googlechrome.exe (on Desktop).
next, I went to the location of googlechrome.exe - in program files deleted googlechrome.exe and then moved the clone from desktop to that location."

open .chm file from my.resources when a buttons clicked

I already have this code from another question on this website.
Help.ShowHelp(ParentForm,
("C:\Users\Beaudean\Desktop\Help.chm"),HelpNavigator.TableOfContents, Nothing)
That works fine except i need the location of the chm help file to point to "my.resources" where it exists because i need to install my program but in that code example it only works with strings?
Thanks you :)
You cannot make this work. The .chm help file viewer is an external program, hh.exe. It doesn't know anything about managed resources, it needs a .chm file on disk.
Setup your project so that the .chm file is available in your build directory. Project + Add Existing Item and pick your .chm file. Select the added file and set its Build property to Content (so it gets installed with the rest of your files) and its Copy to Output Directory to "Copy if Newer" (so it gets copied to your build directory).
And modify your code so it can always find that file:
Dim path = System.IO.Path.Combine(Application.StartupPath, "Help.chm")
Help.ShowHelp(ParentForm, path, HelpNavigator.TableOfContents)

how to execute a batch file using a relative path added to the project

i have created a batch file and have added it to the project using add items. Basically what i am aiming at is to execute this file on a button click action.
I am using System.Diagnostics.Process.Start("hello.bat") command to run this file
i have changed the build action to resource for this batch file.
But when i run this program, it is not able to locate the batch file.
I am required to give a relative path as the path my vary from machine to machine. how can i make this file accessable using a relative path?
Resource puts it inside of your EXE as data. You can google how to write a vb.net resource to a file, use the io tempfilename function to get a tempfile and use that (appending .bat), then run the batchfile from the name you gave it.
If you can ship the .bat with your EXE, this is convenient for debugging and production:
* Put the batchfile in the BIN subdir (debug or release) with your exe. May have to click 'show all files' in project explorer to see these dirs. Right click the .bat and pick 'include in project'. Don't make it a resource.
Run it using application.startuppath & "\" & batfilename. (application.startuppath is only in winforms. You can google 'how to get exe path in vb.net console app' etc. if you need another way).