Command line change

Changed how the script is launched.  No longer using hard coded paths.  Also uses the pip installed version.
This commit is contained in:
MikeTheWatchGuy 2018-07-18 21:32:28 -04:00
parent 8a2456ce20
commit fb2fe90d37
1 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
import PySimpleGUI as SG
import subprocess
import howdoi
# Test this command in a dos window if you are having trouble.
HOW_DO_I_COMMAND = 'python -m howdoi.howdoi'
# CHANGE THIS LINE OF CODE! Point it to the howdoi.py file that is in the howdoi code you download from github
HOW_DO_I_COMMAND = 'python C:\\Python\\PycharmProjects\\GitHub\\howdoi\\howdoi\\howdoi.py'
# if you want an icon on your taskbar for this gui, then change this line of code to point to the ICO file
DEFAULT_ICON = 'E:\\TheRealMyDocs\\Icons\\QuestionMark.ico'
@ -18,7 +20,7 @@ def HowDoI():
form = SG.FlexForm('How Do I ??', auto_size_text=True, default_element_size=(30, 2), icon=DEFAULT_ICON)
form.AddRow(SG.Text('Ask and your answer will appear here....', size=(40, 1)))
form.AddRow(SG.Output(size=(90, 20)))
form.AddRow(SG.Multiline(size=(90, 5), enter_submits=True),
form.AddRow(SG.Multiline(size=(85, 5), enter_submits=True),
SG.ReadFormButton('SEND', button_color=(SG.YELLOWS[0], SG.BLUES[0])),
SG.SimpleButton('EXIT', button_color=(SG.YELLOWS[0], SG.GREENS[0])))