MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / main_open_github_issue

Function main_open_github_issue

DemoPrograms/Demo_Post_An_Issue.py:246–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 return
245
246def main_open_github_issue():
247 font_frame = '_ 14'
248 issue_types = ('Question', 'Bug', 'Enhancement', 'Error Message')
249 # frame_type = [[sg.Radio('Question', 1, size=(10,1), enable_events=True, k='-TYPE: QUESTION-'),
250 # sg.Radio('Bug', 1, size=(10,1), enable_events=True, k='-TYPE: BUG-')],
251 # [sg.Radio('Enhancement', 1, size=(10,1), enable_events=True, k='-TYPE: ENHANCEMENT-'),
252 # sg.Radio('Error Message', 1, size=(10,1), enable_events=True, k='-TYPE: ERROR`-')]]
253 frame_type = [[sg.Radio(t, 1, size=(10,1), enable_events=True, k=t)] for t in issue_types]
254
255 v_size = (15,1)
256 frame_versions = [[sg.T('Python', size=v_size), sg.In(sg.sys.version, size=(20,1), k='-VER PYTHON-')],
257 [sg.T('PySimpleGUI', size=v_size), sg.In(sg.ver, size=(20,1), k='-VER PSG-')],
258 [sg.T('tkinter', size=v_size), sg.In(sg.tclversion_detailed, size=(20,1), k='-VER TK-')],]
259
260 frame_platforms = [ [sg.T('OS '), sg.T('Details')],
261 [sg.Radio('Windows', 2, sg.running_windows(), size=(8,1), k='-OS WIN-'), sg.In(size=(8,1),k='-OS WIN VER-')],
262 [sg.Radio('Linux', 2,sg.running_linux(), size=(8,1), k='-OS LINUX-'), sg.In(size=(8,1),k='-OS LINUX VER-')],
263 [sg.Radio('Mac', 2, sg.running_mac(), size=(8,1), k='-OS MAC-'), sg.In(size=(8,1),k='-OS MAC VER-')],
264 [sg.Radio('Other', 2, size=(8,1), k='-OS OTHER-'), sg.In(size=(8,1),k='-OS OTHER VER-')],
265 ]
266
267
268 frame_experience = [[sg.T('Optional Experience Info')],
269 [sg.In(size=(4,1), k='-EXP PROG-'), sg.T('Years Programming')],
270 [sg.In(size=(4,1), k='-EXP PYTHON-'), sg.T('Years Writing Python')],
271 [sg.CB('Previously programmed a GUI', k='-CB PRIOR GUI-')],
272 [sg.T('Share more if you want....')],
273 [sg.In(size=(25,1), k='-EXP NOTES-')]]
274
275 checklist = (
276 ('Searched main docs for your problem', 'www.PySimpleGUI.org'),
277 ('Looked for Demo Programs that are similar to your goal ', 'http://Demos.PySimpleGUI.org'),
278 ('If not tkinter - looked for Demo Programs for specific port', ''),
279 ('For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)', ''),
280 ('Run your program outside of your debugger (from a command line)', ''),
281 ('Searched through Issues (open and closed) to see if already reported', 'http://Issues.PySimpleGUI.org'),
282 ('Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed vut not released.', ''))
283
284 frame_checklist = [[sg.CB(c, k=('-CB-', i)), sg.T(t, k='-T{}-'.format(i), enable_events=True)] for i, (c, t) in enumerate(checklist)]
285
286 frame_details = [[sg.Multiline(size=(65,10), font='Courier 10', k='-ML DETAILS-')]]
287 frame_code = [[sg.Multiline(size=(80,10), font='Courier 8', k='-ML CODE-')]]
288 frame_markdown = [[sg.Multiline(size=(80,10), font='Courier 8', k='-ML MARKDOWN-')]]
289
290 top_layout = [ [sg.Col([[sg.Text('Open A GitHub Issue (* = Required Info)', font='_ 15')]], expand_x=True),
291 sg.Col([[sg.B('Help')]])],
292 [sg.Frame('Title *', [[sg.Input(k='-TITLE-', size=(50,1), font='_ 14', focus=True)]], font=font_frame)],
293 sg.vtop([
294 sg.Frame('Platform *',frame_platforms, font=font_frame),
295 sg.Frame('Type of Issue *',frame_type, font=font_frame),
296 sg.Frame('Versions *',frame_versions, font=font_frame),
297 sg.Frame('Experience',frame_experience, font=font_frame),
298 ]),
299 [sg.Frame('Checklist * (note that you can click the links)',frame_checklist, font=font_frame)],
300 [sg.HorizontalSeparator()],
301 [sg.T(sg.SYMBOL_DOWN + ' If you need more room for details grab the dot and drag to expand', background_color='red', text_color='white')]]
302
303 bottom_layout = [

Callers 1

Calls 10

readMethod · 0.95
closeMethod · 0.95
_github_issue_helpFunction · 0.85
expandMethod · 0.80
set_cursorMethod · 0.45
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected