|
|
|
@ -279,6 +279,10 @@ if __name__ == '__main__':
|
|
|
|
|
minty, lumen, sandstone, yeti, pulse, united, morph, journal, darkly, superhero, solar
|
|
|
|
|
cyborg, vapor, simplex, cerculean,
|
|
|
|
|
"""
|
|
|
|
|
from pycallgraph2 import PyCallGraph
|
|
|
|
|
from pycallgraph2.output import GraphvizOutput
|
|
|
|
|
from pycallgraph2 import Config
|
|
|
|
|
from pycallgraph2 import GlobbingFilter
|
|
|
|
|
style = "morph"
|
|
|
|
|
root = Window(themename=style)
|
|
|
|
|
screenwidth = root.winfo_screenwidth()
|
|
|
|
@ -293,7 +297,15 @@ if __name__ == '__main__':
|
|
|
|
|
(screenheight - root_attr['height']) / 2)
|
|
|
|
|
root.geometry(alignstr)
|
|
|
|
|
root.resizable(width=False, height=False)
|
|
|
|
|
app = StuSys_X4(root, root_attr)
|
|
|
|
|
|
|
|
|
|
ttk.Style().configure("TButton", font="-size 18")
|
|
|
|
|
output = GraphvizOutput()
|
|
|
|
|
output.output_file = "basic.png"
|
|
|
|
|
config = Config()
|
|
|
|
|
config.trace_filter = GlobbingFilter(include=[
|
|
|
|
|
'StuSys_X4.*',
|
|
|
|
|
'FormElement.*',
|
|
|
|
|
'LoadElement.*',
|
|
|
|
|
])
|
|
|
|
|
with PyCallGraph(output=output, config=config):
|
|
|
|
|
app = StuSys_X4(root, root_attr)
|
|
|
|
|
ttk.Style().configure("TButton", font="-size 18")
|
|
|
|
|
root.mainloop()
|
|
|
|
|