![]() ![]() The last item is "Configure Commands" You have to have the option set to p2b.Īttached is a simple script just to make sure everything is working. With both py2flexgui.py and py2pnut.py any changes saved in either FlexGui or PNut are automatically updated by NotePad++ if you change any of the working directories used in the program.you have to delete your hotkey and redo it. Play with P圜harm until you are comfortable. This is a complete Python working environment and at the time I was looking it seemed like the most complete and easy to use. Modules: you have to import them so that means you have to download them unless you already have:įrom pywinauto.findwindows import find_windowįrom pywinauto.win32functions import SetForegroundWindowĭownload JetBrains P圜harm Community Edition. Just install 2.7 and set the path to THAT python.exe.Ģ. I suspect this doesn't work in other versions. Getting the hotkey registered is the fiddliest part and I frequently get it wrong.ġ. Close it all up and you should be good to go. Choose a key combination as you "hotkeys" I use "Shift" and "F5" since they aren't used by default. FlexGui should open and run your program and then exit.Ĥ. What should happen is that your program should load into NotePad++. Select the first menu item "Run." A dialog will open. Open Notepad++ and you will find a menu called "RUN". ![]() Now go to where you put py2FlexGui.py and drag that over and drop it on Command Prompt.Ĭopy the line. then go back to File Explorer and drag the python executable over onto the Command Prompt. ![]() Most importantly, you have to pick which P2 file you want to work on and put that directory path.Ģ. Go into the code and at the beginning will you see three directory paths to Notepad++, flexgui.exe, and the program you are going to work on. With Notepad++, I can have both programs open side by side and edit them interactively and then run them using two hotkey'sġ. The plan is to use PNut to program one board and FlexGui for the other. I have made some improvements and you can find both programs attached. I previously created a program, "py2pnut," to do the same using PNut. Color coding, Code Folding, multiple windows open side by side etc. If you haven't thought about Notepad++ for a while, take a look. I am not going to go over Notepad++ features. A python program, "py2flexgui.py," sits between Notepad++ and FlexGui. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |