- Tkinter GUI Application Development Cookbook
- Alejandro Rodas de Paz
- 77字
- 2021-08-27 19:44:00
There's more...
We used an attribute to keep a reference to our PhotoImage instance, even though we are not using it outside our __init__ method. The reason is that images are cleared when they are garbage collected, which will happen if we declare it as a local variable and the method exists.
To avoid this, always remember to keep a reference to each PhotoImage object as long as the window where it is shown is still alive.
推薦閱讀
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- C#完全自學教程
- Android Application Development Cookbook(Second Edition)
- The Data Visualization Workshop
- FFmpeg入門詳解:音視頻原理及應用
- QTP自動化測試進階
- The HTML and CSS Workshop
- Mathematica Data Analysis
- Instant Ext.NET Application Development
- Angular開發入門與實戰
- 軟件測試分析與實踐
- Clojure High Performance Programming(Second Edition)
- Java EE實用教程
- JavaScript語法簡明手冊
- Scratch 3.0少兒積木式編程(6~10歲)