background preloader

GuiProgramming

GuiProgramming
Python has a huge number of GUI frameworks (or toolkits) available for it, from TkInter (traditionally bundled with Python, using Tk) to a number of other cross-platform solutions, as well as bindings to platform-specific (also known as "native") technologies. Cross-Browser Frameworks Cross-Platform Frameworks The major cross-platform technologies upon which Python frameworks are based include GTK, Qt, Tk and wxWidgets, although many other technologies provide actively maintained Python bindings. Platform-specific Frameworks GUI Design Tools and IDEs - Wikipedia article describing several IDE's and GUI Builders. Editorial Notes The above lists should be arranged in ascending alphabetical order - please respect this when adding new frameworks or tools. CategoryPyGUI

TkInter Tkinter is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk. Tkinter is not the only GuiProgramming toolkit for Python. The Tkinter wiki: Tkinter Documentation An Introduction To Tkinter (online) by FredrikLundh Tkinter reference: a GUI for Python (online or pdf) by John W. David McNab recommended the latter two as particularly "pythonic" in not insisting that readers think in Tcl. Thinking in Tkinter is an introduction to some basic Tkinter programming concepts. Tkinter Extensions MythDebunking: TkInter is ugly on Windows ( Checking your Tkinter support A good way to systematically check whether your Tkinter support is working is the following. Enter an interactive Python interpreter in a shell on an X console. Step 1 - can _tkinter be imported? Try the following command at the Python prompt: >>> import _tkinter # with underscore, and lowercase 't' >>> Tkinter.

EasyGui last revision date: 2011-11-08 1 A warning about using EasyGui with IDLE You may encounter problems using IDLE to run programs that use easygui. Try it and find out. easygui is a collection of Tkinter routines that run their own event loops. IDLE is also a Tkinter application, with its own event loop. The two may conflict, with the unpredictable results. 2 Introduction In easygui, all GUI interactions are invoked by simple function calls. Here is a simple demo program using easygui. # save this file as ......| test1.py # run this file this way..| python test1.py import easygui as eg import sys while 1: title = "Message from test1.py" eg.msgbox("Hello, world!" 3 EasyGui's demonstration routine To run EasyGui's demonstration routine, invoke EasyGui from the command line this way: python easygui.py or from an IDE (such as IDLE, PythonWin, Wing, etc.) this way: import easygui as eg eg.egdemo() 4 Importing EasyGui In order to use EasyGui, you must import it. from easygui import * msgbox(...) 8.1 msgbox

appJar wxPython Cross-platform Python Framework for NUI Development chromiumembedded / cef The Chromium Embedded Framework (CEF) is a simple framework for embedding Chromium-based browsers in other applications. CEF is a BSD-licensed open source project founded by Marshall Greenblatt in 2008 and based on the Google Chromium project. Unlike the Chromium project itself, which focuses mainly on Google Chrome application development, CEF focuses on facilitating embedded browser use cases in third-party applications. CEF insulates the user from the underlying Chromium and Blink code complexity by offering production-quality stable APIs, release branches tracking specific Chromium releases, and binary distributions. Most features in CEF have default implementations that provide rich functionality while requiring little or no integration work from the user. CEF supports a wide range of programming languages and operating systems and can be easily integrated into both new and existing applications. The CEF project is an extension of the Chromium project.

Graphic User Interface FAQ — Python 3.6.2 documentation What platform-independent GUI toolkits exist for Python? Depending on what platform(s) you are aiming at, there are several. Some of them haven’t been ported to Python 3 yet. At least Tkinter and Qt are known to be Python 3-compatible. Tkinter Standard builds of Python include an object-oriented interface to the Tcl/Tk widget set, called tkinter. Qt There are bindings available for the Qt toolkit (using either PyQt or PySide) and for KDE (PyKDE4). Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses are available from The Qt Company. Kivy Kivy is a cross-platform GUI library supporting both desktop operating systems (Windows, macOS, Linux) and mobile devices (Android, iOS). Kivy is free and open source software distributed under the MIT license. Tkinter questions How do I freeze Tkinter applications? Freeze is a tool to create stand-alone applications. Can I have Tk events handled while waiting for I/O? I can’t get key bindings to work in Tkinter: why?

Welcome to web.py! (web.py) python - Iterating over every two elements in a list WebFrameworks A Web framework is a collection of packages or modules which allow developers to write Web applications (see WebApplications) or services without having to handle such low-level details as protocols, sockets or process/thread management. The majority of Web frameworks are exclusively server-side technology, although, with the increased prevalence of AJAX, some Web frameworks are beginning to include AJAX code that helps developers with the particularly tricky task of programming (client-side) the user's browser. At the extreme end of the client-side Web Frameworks is technology that can use the web browser as a full-blown application execution environment (a la gmail for example): see Web Browser Programming for details. Generally, frameworks provide support for a number of activities such as interpreting requests (getting form parameters, handling cookies and sessions), producing responses (presenting data as HTML or in other formats), storing data persistently, and so on.

Using Python in TideSDK - TideSDK Documentation Author: David Pratt Preface This documentation applies to TideSDK 1.3.1. If you have not yet upgraded to TideSDK 1.3.1, please review the CHANGES Overview Python is a remarkably powerful dynamic programming language that is used in a wide variety of application domains. very clear, readable syntaxstrong introspection capabilitiesintuitive object orientationnatural expression of procedural codefull modularity, supporting hierarchical packagesexception-based error handlingvery high level dynamic data typesextensive standard libraries and third party modules for virtually every taskextensions and modules easily written in C, C++ (or Java for Jython, or .NET languages for IronPython)embeddable within applications as a scripting interface This guide demonstrates how to use the python module in TideSDK. Embedding python code within the DOM (Document Object Model)Call to scripts included in your application Using the Python module App Manifest A quick demonstration Embedding python in the DOM #! Numbers

Related: