Open Thesoul20 opened 1 year ago
last but not least, when exit the GUI, the process cannot exit normally:
/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/matplotlib/animation.py:1732: UserWarning: Can not start iterating the frames for the initial draw. This can be caused by passing in a 0 length sequence for *frames*.
If you passed *frames* as a generator it may be exhausted due to a previous display or save.
warnings.warn(
/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/matplotlib/animation.py:880: UserWarning: Animation was deleted without rendering anything. This is most likely not intended. To prevent deletion, assign the Animation to a variable, e.g. `anim`, that exists until you output the Animation using `plt.show()` or `anim.save()`.
warnings.warn(
^CException in Tkinter callback
Traceback (most recent call last):
File "/home/choose/.pyenv/versions/3.10.10/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Calculation.py", line 1437, in gui_calculate
self.open_graph()
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Calculation.py", line 1450, in open_graph
graph.GraphGUI(data_ucomps=self.calc_data['u_comps'],
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Graph.py", line 2983, in __init__
self.mainloop()
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Graph.py", line 3026, in mainloop
self.root_win.mainloop()
File "/home/choose/.pyenv/versions/3.10.10/lib/python3.10/tkinter/__init__.py", line 1458, in mainloop
self.tk.mainloop(n)
KeyboardInterrupt
^C
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/choose/.pyenv/versions/3.10.10/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Calculation.py", line 1437, in gui_calculate
self.open_graph()
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Calculation.py", line 1450, in open_graph
graph.GraphGUI(data_ucomps=self.calc_data['u_comps'],
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Graph.py", line 2983, in __init__
self.mainloop()
File "/home/choose/envs/tenv/.venv/lib/python3.10/site-packages/Elecpy/Graph.py", line 3026, in mainloop
self.root_win.mainloop()
File "/home/choose/.pyenv/versions/3.10.10/lib/python3.10/tkinter/__init__.py", line 1458, in mainloop
self.tk.mainloop(n)
KeyboardInterrupt
basic info
python verison==3.10.10 ipython version==8.11.0 Elecpy==0.1.1 pandas==1.5.3 matplotlib==3.7.0
OS info: Linux username 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
cannot open GUI by default
after install QT successfully, I cannot open the GUI after running the command below
The error log is:
accourding to the line of 2248 in the file
python3.10/tkinter/__init__.py
:iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only)
, SO must not use zoomed in Unix operation system.open GUI by other parameter(normal) but cannot zoom in workplace manually
When i change the parameter zoomed to normal in function of
Elecpy.Platform.PlatformGUI.build_root_win()
:I can open the GUI successful now, but cannot zoom in the workplace as below pictures show:
open GUI by setting parameter of geometry, also cannot zoom in
when change the parameter of
geometry
in functionElecpy.Platform.PlatformGUI.build_root_win()
:I can open GUI successfully, but also cannot zoom out the workplace.
So, how to zoom in workplace manually?