development/easygui: Added to 12.0 repository

This commit is contained in:
LukenShiro 2010-05-11 20:00:23 +02:00 committed by Robby Workman
parent e5e53d4c75
commit 6503b265d6
5 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,10 @@
Copyright (c) 2002-2004, Stephen Ferg
This work is licensed under the Creative Commons Attribution 2.0
License. You are free to copy, distribute, and display the work,
and to make derivative works (including translations). If you do,
you must give the original author credit. The author specifically
permits (and encourages) teachers to post, reproduce, and distribute
some or all of this material for use in their classes or by their
students.
http://creativecommons.org/licenses/by/2.0/

View file

@ -0,0 +1,17 @@
EasyGUI is a module for very simple, very easy GUI programming in Python.
Experienced Pythonistas need support for quick and dirty GUI features.
New Python programmers need GUI capabilities that don't require any
knowledge of Tkinter, frames, widgets, callbacks or lambda. This is
what EasyGUI provides. Using EasyGUI, all GUI interactions are invoked
by simple function calls.
EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven.
It allows you to program in a traditional linear fashion, and to put up
dialogs for simple input and output when you need to. If you have not yet
learned the event-driven paradigm for GUI programming, EasyGUI will allow
you to be productive with very basic tasks immediately. Later, if you wish
to make the transition to an event-driven GUI paradigm, you can move to an
event-driven style with a more powerful GUI package such as anygui,
PythonCard, Tkinter, wxPython, etc. EasyGui is there just to do very basic
stuff. More elaborate stuff should be done with more powerful tools.
EasyGUI is built on top of Tkinter.

View file

@ -0,0 +1,65 @@
#!/bin/sh
# Slackware build script for easygui
# Copyright 2007 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Exit on most errors
set -e
PRGNAM=easygui
VERSION=0.72
ARCH=i486
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
PYTHON_DIR="/usr/lib/python2.5/site-packages/"
# SLKCFLAGS are not used
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
unzip $CWD/$PRGNAM.zip
chown -R root:root . || true
chmod -R u+w,go+r-w,a-s .
# Copy documentation files
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m 644 easygui.txt $CWD/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# install .py source file
mkdir -p $PKG/$PYTHON_DIR
install -m 644 $PRGNAM.py $PKG/$PYTHON_DIR
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="easygui"
VERSION="0.72"
HOMEPAGE="http://www.ferg.org/easygui/"
DOWNLOAD="http://www.ferg.org/easygui/easygui.zip"
MD5SUM="32aefe99d98aaea41576038da0513e07"
MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it"
APPROVED="rworkman"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
easygui: EasyGui (very easy GUI programming in python on top of Tkinter)
easygui:
easygui: It provides an easy-to-use interface for simple GUI interaction
easygui: with a user. It does not require the programmer to know anything
easygui: about tkinter, frames, widgets, callbacks or lambda. All GUI
easygui: interactions are invoked by simple function calls that return
easygui: results. It is written by Stephen Ferg and is released under
easygui: Creative Commons Attribution 2.0 License.
easygui:
easygui: http://www.ferg.org/easygui/
easygui: