Skip to main content

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.14 (2009/10/05):

  • bugfix : use of the grun decorator was buggued (func_closure)

  • local config enabled, if the conf file is in the root app

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

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.14.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grun-0.14-py2.6.egg (42.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for grun-0.14.tar.gz
Algorithm Hash digest
SHA256 ff018be6a77bd695db685b7ab864f9756d078821de2073132961f807cdb348dc
MD5 012067b60cd23227bfded692f70f7b32
BLAKE2b-256 2cc1ec5fd39314966ae92a06a0aa5239f47f1c3e67ef6adedff5523f90277f95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grun-0.14-py2.6.egg
  • Upload date:
  • Size: 42.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for grun-0.14-py2.6.egg
Algorithm Hash digest
SHA256 2bf5928459338536d67d40278482e138051015a904c47c0b61ae7bb7c0940250
MD5 4b1eacfbe829707376ff8e8fb0067ebf
BLAKE2b-256 3d8fffbf0d74679905bba74d793595ffd240c76006af0cc236c182cf33fa260f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.14 This release

2 files

0.13

2 files

0.12

2 files

0.11

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page