官术网_书友最值得收藏!

Meet Tkinter

Hello, and welcome to Tkinter GUI Programming by Example. In this book, we will be building three real-world desktop applications using Python and Tkinter. You will gain the knowledge to fully utilize Tkinter's vast array of widgets to create and lay out any application you choose.

So why use Tkinter? Tkinter comes bundled with Python most of the time, meaning there's no arduous installation process. It's also licensed under a free software license, meaning, unlike some other GUI frameworks, there's no complicated licensing model to battle against when you want to release your software to the outside world.

Tkinter is also very quick and easy to learn. Code can be written both procedurally or using object-oriented practices (which is the preferred style for anything non-experimental), and runs perfectly on any operating system supporting Python development, including Windows, macOS, and Linux.

In this first chapter, we will cover the following topics:

  • Ensuring Tkinter is installed and available
  • Creating a main window in which to display your application
  • Laying out widgets inside the window via geometry managers
  • Creating widgets and displaying them inside your main window
  • Displaying static information via a label widget
  • Creating interactivity with the Button widget
  • Tying widgets to Python functions
  • Using Tkinter's special variables
  • Displaying pop-up messages easily
  • Getting information from the user
主站蜘蛛池模板: 竹溪县| 明星| 曲松县| 兴国县| 鄄城县| 平乡县| 二手房| 纳雍县| 雷州市| 手机| 同江市| 上犹县| 峨山| 古田县| 临西县| 新余市| 田林县| 西和县| 溧阳市| 天峨县| 探索| 利川市| 高台县| 铜梁县| 宣武区| 奉节县| 萨嘎县| 大城县| 息烽县| 府谷县| 漳浦县| 巴林左旗| 长岭县| 称多县| 济源市| 建德市| 绥棱县| 嘉义市| 沂源县| 阿勒泰市| 普宁市|