From fb2fe90d373e13cac061b46e47ea2465a23016c2 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 18 Jul 2018 21:32:28 -0400 Subject: [PATCH] Command line change Changed how the script is launched. No longer using hard coded paths. Also uses the pip installed version. --- Demo HowDoI.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Demo HowDoI.py b/Demo HowDoI.py index 3565b1a6..26858ed3 100644 --- a/Demo HowDoI.py +++ b/Demo HowDoI.py @@ -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])))