2019-07-26 23:35:16 +00:00
|
|
|
import inspect
|
2019-09-08 14:54:13 +00:00
|
|
|
import PySimpleGUI as sg
|
2019-07-26 23:35:16 +00:00
|
|
|
|
2019-09-08 14:54:13 +00:00
|
|
|
psg_members = inspect.getmembers(PySimpleGUI)
|
2019-07-26 23:35:16 +00:00
|
|
|
|
|
|
|
psg_funcs = [o for o in psg_members if inspect.isfunction(o[1])]
|
|
|
|
psg_classes = [o for o in psg_members if inspect.isclass(o[1])]
|
|
|
|
psg_classes_ = list(set([i[1] for i in psg_classes])) # filtering
|
|
|
|
psg_classes = list(zip([i.__name__ for i in psg_classes_], psg_classes_))
|
|
|
|
|
|
|
|
for i in psg_funcs:
|
|
|
|
if 'Tk' in i[0] or 'TK' in i[0] or 'Element' == i[0]: # or 'Window' == i[0]:
|
|
|
|
continue
|
|
|
|
print('')
|
|
|
|
print(f'<!-- <+func.{i[0]}+> -->')
|
2019-11-26 22:21:53 +00:00
|
|
|
print('\n'.join(['\t' + j[0] for j in inspect.getmembers(i[1]) if not j[0].startswith('_')]))
|
2019-07-26 23:35:16 +00:00
|
|
|
|
|
|
|
sg.Popup()
|
|
|
|
sg.Button()
|