Learning Tkinter - Courses - Python GUI - lesson 11 - Build Calculator - OOP - Object Oriented Programming.

Tkinter is the de facto way in Python to create Graphical User interfaces (GUIs) and is included in all standard Python Distributions. In fact, it's the only framework built into the Python standard library.

The tkinter package (“Tk interface”) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems.

Running python -m tkinter from the command line should open a window demonstrating a simple Tk interface, letting you know that tkinter is properly installed on your system, and also showing what version of Tcl/Tk is installed, so you can read the Tcl/Tk documentation specific to that version.

Tkinter supports a range of Tcl/Tk versions, built either with or without thread support. The official Python binary release bundles Tcl/Tk 8.6 threaded. See the source code for the _tkinter module for more information about supported versions.

Tkinter is not a thin wrapper, but adds a fair amount of its own logic to make the experience more pythonic. This documentation will concentrate on these additions and changes, and refer to the official Tcl/Tk documentation for details that are unchanged.


تعلم تيكنتر - الدورات - واجهات البايثون - الدرس 11 - تصميم و بناء آلة حاسبة أساسية - البرمجة غرضية التوجه
تيكنتر هي الطريقة الواقعية في البايثون لإنشاء واجهات المستخدم الرسومية (واجهات) ويتم تضمينها في جميع توزيعات البايثون القياسية. في الواقع ، إنه الإطار الوحيد المدمج في مكتبة البايثون القياسية.

حزمة تيكنتر ("واجهة تك") هي واجهة البايثون القياسية لمجموعة أدوات تك واجهات. يتوفر كل من تك و تيكنتر في معظم منصات يونكس ، بما في ذلك ماك، وكذلك على أنظمة ويندوز.

يجب أن يؤدي تشغيل البايثون تيكنتر من سطر الأوامر إلى فتح نافذة توضح واجهة تك بسيطة ، مما يتيح لك معرفة أن تيكنتر مثبت بشكل صحيح على نظامك ، وكذلك إظهار إصدار تك المثبت ، حتى تتمكن من قراءة وثائق المعارف التقليدية الخاصة بهذا الإصدار.

يدعم تيكنتر مجموعة من إصدارات تك ، التي تم إنشاؤها إما بدعم أو بدون دعم الخيط. حزم الإصدار الثنائي الرسمية من البايثون تك 8.6 مترابطة. راجع التعليمات البرمجية المصدر للوحدة النمطية _تيكنتر للحصول على مزيد من المعلومات حول الإصدارات المدعومة.

تيكنتر ليس غلافًا رقيقًا ، ولكنه يضيف قدرًا لا بأس به من منطقه الخاص لجعل التجربة أكثر بيثونية. ستركز هذه الوثائق على هذه الإضافات والتغييرات ، وستشير إلى وثائق تك الرسمية للحصول على التفاصيل التي لم تتغير.