Skip to content

Commit e6c1a14

Browse files
committed
Added tab to Open GitHub Issue GUI asking about how found PSG....The optional questions have been awesome to read!
1 parent ee2ccab commit e6c1a14

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed

PySimpleGUI.py

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python3
2-
version = __version__ = "4.57.0.4 Unreleased"
2+
version = __version__ = "4.57.0.5 Unreleased"
33

44
_change_log = """
55
Changelog since 4.57.0 released to PyPI on 13-Feb-2022
@@ -12,6 +12,8 @@
1212
Coupon... for 30 days this time....
1313
4.57.0.4
1414
ButtonMenu.update - addition of button_text parameter. Enables changing text displayed on the ButtonMenu. Should have been an original feature.
15+
4.57.0.5
16+
Open GitHub Issue GUI - Tabs use 2 lines now. Added tab asking where found PSG.
1517
"""
1618

1719
__version__ = version.split()[0] # For PEP 396 and PEP 345
@@ -22206,7 +22208,7 @@ def _random_happy_emoji():
2220622208
def _github_issue_post_make_markdown(issue_type, operating_system, os_ver, psg_port, psg_ver, gui_ver, python_ver,
2220722209
python_exp, prog_exp, used_gui, gui_notes,
2220822210
cb_docs, cb_demos, cb_demo_port, cb_readme_other, cb_command_line, cb_issues, cb_github,
22209-
detailed_desc, code, project_details):
22211+
detailed_desc, code, project_details, where_found):
2221022212
body = \
2221122213
"""
2221222214
## Type of Issue (Enhancement, Error, Bug, Question)
@@ -22286,16 +22288,28 @@ def _github_issue_post_make_markdown(issue_type, operating_system, os_ver, psg_p
2228622288
#### Screenshot, Sketch, or Drawing
2228722289

2228822290

22289-
-------------------------
2229022291

22291-
{}
22292+
""".format(python_exp, prog_exp, used_gui, gui_notes,
22293+
cb_docs, cb_demos, cb_demo_port, cb_readme_other, cb_command_line, cb_issues, cb_github,
22294+
detailed_desc, code if len(code) > 10 else '# Paste your code here')
2229222295

2229322296

22294-
""".format(python_exp, prog_exp, used_gui, gui_notes,
22295-
cb_docs, cb_demos, cb_demo_port, cb_readme_other, cb_command_line, cb_issues, cb_github,
22296-
detailed_desc, code if len(code) > 10 else '# Paste your code here',
22297-
'## Watcha Makin?\n' + str(project_details) if project_details else '')
22297+
if project_details or where_found:
22298+
body2 += '------------------------'
22299+
22300+
if project_details:
22301+
body2 += \
22302+
"""
22303+
## Watcha Makin?
22304+
{}
22305+
""".format(str(project_details))
2229822306

22307+
if where_found:
22308+
body2 += \
22309+
"""
22310+
## How did you find PySimpleGUI?
22311+
{}
22312+
""".format(str(where_found))
2229922313
return body + body2
2230022314

2230122315

@@ -22320,16 +22334,12 @@ def _github_issue_post_validate(values, checklist, issue_types):
2232022334
popup_error('Must choose issue type')
2232122335
return False
2232222336
if values['-OS WIN-']:
22323-
operating_system = 'Windows'
2232422337
os_ver = values['-OS WIN VER-']
2232522338
elif values['-OS LINUX-']:
22326-
operating_system = 'Linux'
2232722339
os_ver = values['-OS LINUX VER-']
2232822340
elif values['-OS MAC-']:
22329-
operating_system = 'Mac'
2233022341
os_ver = values['-OS MAC VER-']
2233122342
elif values['-OS OTHER-']:
22332-
operating_system = 'Other'
2233322343
os_ver = values['-OS OTHER VER-']
2233422344
else:
2233522345
popup_error('Must choose Operating System')
@@ -22469,7 +22479,7 @@ def main_open_github_issue():
2246922479
('For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)', ''),
2247022480
('Run your program outside of your debugger (from a command line)', ''),
2247122481
('Searched through Issues (open and closed) to see if already reported', 'http://Issues.PySimpleGUI.org'),
22472-
('Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed vut not released.', ''))
22482+
('Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released.', ''))
2247322483

2247422484
checklist_col1 = Col([[CB(c, k=('-CB-', i)), T(t, k='-T{}-'.format(i), enable_events=True)] for i, (c, t) in enumerate(checklist[:4])], k='-C FRAME CBs1-')
2247522485
checklist_col2 = Col([[CB(c, k=('-CB-', i + 4)), T(t, k='-T{}-'.format(i + 4), enable_events=True)] for i, (c, t) in enumerate(checklist[4:])], pad=(0, 0),
@@ -22478,9 +22488,16 @@ def main_open_github_issue():
2247822488
[[Tab('Checklist 1 *', [[checklist_col1]], expand_x=True, expand_y=True), Tab('Checklist 2 *', [[checklist_col2]]), Tab('Experience', col_experience, k='-Tab Exp-', pad=(0, 0))]], expand_x=True, expand_y=True)
2247922489

2248022490
frame_details = [[Multiline(size=(65, 10), font='Courier 10', k='-ML DETAILS-', expand_x=True, expand_y=True)]]
22491+
2248122492
tooltip_project_details = 'If you care to share a little about your project,\nthen by all means tell us what you are making!'
2248222493
frame_project_details = [[Multiline(size=(65, 10), font='Courier 10', k='-ML PROJECT DETAILS-', expand_x=True, expand_y=True, tooltip=tooltip_project_details)]]
22483-
frame_code = [[Multiline(size=(80, 10), font='Courier 8', k='-ML CODE-', expand_x=True, expand_y=True)]]
22494+
22495+
tooltip_where_find_psg = 'Where did you learn about PySimpleGUI?'
22496+
frame_where_you_found_psg = [[Multiline(size=(65, 10), font='Courier 10', k='-ML FOUND PSG-', expand_x=True, expand_y=True, tooltip=tooltip_where_find_psg)]]
22497+
22498+
tooltip_code = 'A short program that can be immediately run will considerably speed up getting you quality help.'
22499+
frame_code = [[Multiline(size=(80, 10), font='Courier 8', k='-ML CODE-', expand_x=True, expand_y=True, tooltip=tooltip_code)]]
22500+
2248422501
frame_markdown = [[Multiline(size=(80, 10), font='Courier 8', k='-ML MARKDOWN-', expand_x=True, expand_y=True)]]
2248522502

2248622503
top_layout = [[Col([[Text('Open A GitHub Issue (* = Required Info)', font='_ 15')]], expand_x=True),
@@ -22499,10 +22516,11 @@ def main_open_github_issue():
2249922516
[HorizontalSeparator()],
2250022517
[T(SYMBOL_DOWN + ' If you need more room for details grab the dot and drag to expand', background_color='red', text_color='white')]]
2250122518

22502-
bottom_layout = [[TabGroup([[Tab('Details *', frame_details, pad=(0, 0)),
22503-
Tab('SHORT Code to duplicate Program *', frame_code, pad=(0, 0)),
22504-
Tab('Your Project Details (optional)', frame_project_details, pad=(0, 0)),
22505-
Tab('Markdown Output', frame_markdown, pad=(0, 0)),
22519+
bottom_layout = [[TabGroup([[Tab('Details *\n', frame_details, pad=(0, 0)),
22520+
Tab('SHORT Program\nto duplicate problem *', frame_code, pad=(0, 0)),
22521+
Tab('Your Project Details\n(optional)', frame_project_details, pad=(0, 0)),
22522+
Tab('Where you found us?\n(optional)', frame_where_you_found_psg, pad=(0, 0)),
22523+
Tab('Markdown Output\n', frame_markdown, pad=(0, 0)),
2250622524
]], k='-TABGROUP-', expand_x=True, expand_y=True),
2250722525
]]
2250822526

@@ -22586,7 +22604,8 @@ def main_open_github_issue():
2258622604
cb_dict = {'cb_docs': checkboxes[0], 'cb_demos': checkboxes[1], 'cb_demo_port': checkboxes[2], 'cb_readme_other': checkboxes[3],
2258722605
'cb_command_line': checkboxes[4], 'cb_issues': checkboxes[5], 'cb_github': checkboxes[6], 'detailed_desc': values['-ML DETAILS-'],
2258822606
'code': values['-ML CODE-'],
22589-
'project_details': values['-ML PROJECT DETAILS-'].rstrip()}
22607+
'project_details': values['-ML PROJECT DETAILS-'].rstrip(),
22608+
'where_found': values['-ML FOUND PSG-']}
2259022609

2259122610
markdown = _github_issue_post_make_markdown(issue_type, operating_system, os_ver, 'tkinter', values['-VER PSG-'], values['-VER TK-'],
2259222611
values['-VER PYTHON-'],

0 commit comments

Comments
 (0)