Skip to main content

The simplest GUI builder (tk/gtk), for RAD scripts

Project description

A simple example, turn your methods into gui forms

from grun import grun

@grun
def my_window( name, passwd, cookie=["1 day","1 week","1 month"] ):
    '''Hello, I'm the method's doc

    name:    Login
    passwd:  Password
    cookie:  How long ?
    '''
    if name == passwd:
        return True
    else:
        grun("Set login == password !")

print my_window(cookie="1 day")

will display :

http://www.manatlan.com/files/grun.png

Works on Linux/BSD, Windows and Mac using Tk framework (or pygtk when available)

See more infos

Version 0.13 (2009/10/03):

  • fix: gtk number-widget wasn’t initialized when value was None

  • tk iconapp simulate now a grunapp (not a popup’app anymore)

Version 0.12 (2009/10/03):

  • tk popup should work as expected on win32 (no more tk.mainloop) !!!!!!!

  • tk winform should focus on first entry now (seems not work on win ?!)

  • popup/popapp actions wich return something returns it after grun.popup

Version 0.11 (2009/10/01):

  • clipboard manager available grun.clipboard

  • better shortcut grun.popup()

  • better shortcut grun.form()

  • popup menu works with any types of value

  • popup menu support submenu too !

  • tk: text widget with usable scrollbars now

  • tk: fix in msgbox (always of type error)

  • tk: home-made-combobox, replaced by Tk.OptionMenu

  • tk: better simulation of tk popapp/popupmenu (no more ‘close’ entry)

Version 0.1 (2009/09/28): Initial Public Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grun-0.13.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

grun-0.13-py2.6.egg (43.0 kB view details)

Uploaded Source

File details

Details for the file grun-0.13.tar.gz.

File metadata

  • Download URL: grun-0.13.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for grun-0.13.tar.gz
Algorithm Hash digest
SHA256 d6d8b0395cfe4de2d02066ded59ab022f23fd7f49f3a4be8c543f7fa04816540
MD5 01df71d524e6111446ae27f4dbfce0a2
BLAKE2b-256 e673f4202ddd3a874e4fbe14be87b1a398f92f2dacaf176e6fe9a4628ded241b

See more details on using hashes here.

File details

Details for the file grun-0.13-py2.6.egg.

File metadata

  • Download URL: grun-0.13-py2.6.egg
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for grun-0.13-py2.6.egg
Algorithm Hash digest
SHA256 f7b47a0fc7d3a485d330a33cb4190367c3a3918c8692841196dc3e9777a29b12
MD5 e08e2b1c7d9461bd9f23bfe26ceafa42
BLAKE2b-256 2f7394ce0e12e0d33617e732dad05ddaab4cac929872b9976899b521f0a39679

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page