First official release :)
curses-extra offers some widgets wrotten using curses module.
The following classes and functions are present in the module
Widget
Button
ButtonBar #bar of buttons (automatically manage arrow keys)
CheckButton
RadioButton
CheckButtonList #list of checkbutton (as ButtonBar)
ComboBox
Menu
MenuBar
add_shortcut(pattern,action) #check combinations of keys, eg <ctrl>H
use_shortcut(c,obj) #check if character is a shortcut, and use it
# in case
#NOTE: widgets auto-check for the shortcuts
chgat(win[,y,x],count,attr,color) #change attributes of an area
You can find it at
http://www.sideralis.net/index.php?action=4&pjid=20
Suggestions about API or about widgets' graphic are appreciated.
Thanks,
Riccardo
--
-=Riccardo Galli=-
_,e.
s~ ``
~@. ideralis Programs
. ol
`**~ http://www.sideralis.net
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
G'day folks,
This is a quick note to let you know that registrations for Australia's
first Open Source Developers' Conference are now open.
If you register before 31st October 2004 you will receive a conference
t-shirt and financial discount. The t-shirts look fantastic. :)
You can register at http://www.osdc.com.au/
OSDC is a grassroots-style conference designed by developers for
developers, covering open source languages, tools, libraries, operating
systems, licences and business models. We're booking 3 lecture rooms
each day for the 3 days and every single slot is filled with a talk.
There are 60 different talks by 45 different speakers, not including the
keynotes.
Talks topics range from dealing with hardware in Perl, to designing
cochlear implants with Python, to writing large-scale PHP. We also have
talks on the Firebird Database, Mozilla XUL, Lego Micromouse (and maze
solving), MySQL, CVS, Make, DocBook and writing games with Javascript.
You can find the list of speakers and talk titles at
http://www.osdc.com.au/papers/index.html Speaker names listed as
"unavailable" means that that speaker opted to have their paper
refereed. Their names will appear once the refereeing process is over.
Because there are so many good talks, you can be certain that there will
be something that interests you in every talk session. In our initial
timetable it was impossible to put the most interesting talks into
sequential timeslots as we had too many "most interesting" talks for the
time available. Each day will start with a 1.5 hour keynote by our
excellent keynote speakers. These include Damian Conway, Nathan
Torkington, Anthony Baxter, Luke Welling and Con Zymaris. The rest of
the day will be filled with 5 hours of talks and plentiful food breaks.
Our catering choices should result in you being extraordinarily well fed
throughout the days of the conference.
There will also be a key-signing, several BOFs (yet to be organised),
lots of opportunities to socialise, a semi-formal dinner, a partners'
programme and other usual conference stuff.
If you have any other questions about what is happening, please don't
hesitate to ask: osdc-help(a)osdc.com.au
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBa5yDrGisBEHG6TARAst4AJkBRd4kg9t+XZLVqVr6Zy+YV03HJACeLvug
Oh+B0WlWAnrDXF9ZVXIEo8o=
=1Z93
-----END PGP SIGNATURE-----
The next meeting of BayPIGgies will be Thurs October 14 at 7:30pm. In
lieu of a speaker, we'll be having a Beginner's Roundtable run by Danny
Yoo.
BayPIGgies meetings are in Stanford, California. For more information
and directions, see http://www.baypiggies.net/
Before the meeting, we may meet at 6pm for dinner in downtown Palo Alto.
Discussion of dinner plans is handled on the BayPIGgies mailing list.
Advance notice: The November 11 meeting agenda has not been set. Please
send e-mail to baypiggies(a)baypiggies.net if you want to make a
presentation.
--
Aahz (aahz(a)pythoncraft.com) <*> http://www.pythoncraft.com/
WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat. (with no apologies to John Woods)
Release 1.2.0 of the Python Computer Graphics Kit is available at
http://cgkit.sourceforge.net
What is it?
-----------
The kit is a collection of Python modules that contain the basic types
and functions required for creating 3D computer graphics images. The
kit includes several new types such as vectors, matrices and
quaternions. It contains a binding for Pixar's RenderMan interface
which is a renderer independent API to communicate 3D data to
renderers which will finally produce a 2D image. There are already
several RenderMan compliant renderers freely available (they are not
part of the kit). The kit also includes some of the functionality from
the RenderMan Shading Language which enables you to create procedural
models or textures from within Python.
Even though the kit focuses on RenderMan, the new types or the Shading
Language functionality can also be used for other rendering mechanism
such as OpenGL or other renderers such as POV-Ray.
The kit should run on any platform where Python (and a C/C++ compiler)
is available. Binary packages are available for Windows and Debian.
What's new?
-----------
The new release fixes a crash that could occur with the Python 2.2
binary package on Windows. The problem was actually a bug in Pyrex and
occurred during a garbage collection cycle after a vector has been
unpacked.
Apart from that, there are a few small bug fixes in the ri and cgtypes
module (see changelog).
Debian users can now also download a binary package (thanks to Brett
Hartshorn!).
For more information, visit:
http://cgkit.sourceforge.net
- Matthias -
What every large python project needs.... pretty pictures of the module
dependency graph.
http://www.tarind.com/depgraph.html
.....a few scripts to glue modulefinder.py into graphviz, producing import
dependency pictures pretty enough for use as a poster, and containing enough
information to be a core part of my process for understanding physical
dependencies.
The Chicago Python User Group, ChiPy, will have its next meeting
on Thursday, October 14, starting at 7pm. For more information on ChiPy
see http://chipy.org
This month Edward Ream will be giving a presentation on his project,
Leo: http://webpages.charter.net/edreamleo/front.html
About the Presentation
----------------------
Leo is an outlining editor that creates and displays relationships
between code and data in a new way; you can't do what Leo does with
Emacs or any other tool. Leo shows these relationships in an outline
using noweb, a simple markup language. Clones are separate parts of an
outline that represent the same data. Clones allow you to create
multiple views of data within a single outline.
Edward's talk will briefly discuss outlines, noweb and clones, and then
show how these three powerful features can be combined to clarify and
simplify all aspects of programming: design, coding, testing and unit
test, maintenance, data management and project management.
Edward K. Ream received a masters degree in computer science from the
University of Wisconsin, Madison in 1974 and has been programming ever
since. He is the author of numerous public domain programs written in
C. He has been working on Leo for almost 10 years. For the last three
years he has been programming exclusively in Python using Leo.
There will also be time to chat, and many opportunities to ask
questions. We encourage people at all levels to attend.
Location
--------
This month we will be meeting at SMS in downtown Chicago (the same place
we met in August). The address is 444 N. Michigan Ave, Chicago. Enter
from Michigan Ave., sign in at front desk, and take elevator to 28th floor.
Transportation: parking (at cost) is available at several locations in
the vicinity. Closest is under the Nordstrom building at Rush and Grand.
By public transportation (recommended), take the Red Line to Grand
Avenue Exit. Walk two blocks East to Michigan. Take stairs up to
Michigan. 444 is one block South on the West side of the street.
Wireless (and wired) internet connectivity will be available, so bring
your laptops.
About ChiPy
-----------
We meet once a month, on the second Thursday of the month. If you can't
come this month, please join our mailing list:
http://lonelylion.com/mailman/listinfo/chipy
Rodrigo B. de Oliveira released version 0.4.3 of boo, I thought I'd
share it here since there has been so much interest for similar projects
like IronPython.
http://boo.codehaus.org/
Boo is a python-like language for .NET or the cross-platform Mono
(http://www.go-mono.com/).
Version 0.4.3 adds an interactive interpreter (booish, similar to IDLE
for python), elif, and a bug fix.
I wrote up some notes on boo for people already familiar with Python:
http://boo.codehaus.org/Gotchas+for+Python+Users
Also I have collected some starter resources for getting into .NET
programming: http://developers.coedit.net/DotNetProgramming
A summary of some distinct features of boo:
-quickly compile to an exe (can run cross-platform with Mono)
-closures/anonymous methods: http://boo.codehaus.org/Closures
x = def():
...some code here
-optional static typing:
"x as int", "static def method1() as string:"
-simple super(), automatic super calls and constructors
-unless statement
-built-in support for regular expressions
-timespan literals: "100ms"
-extensible compiler pipeline
-custom macros and attributes (similar to decorators)
-includes an interactive interpreter (booish) and an IDE
with code completion (boox, still in development).
Features in common with C#:
-interfaces, enums, events
-properties with getters and setters
Version as string:
get:
return _version
set:
_version = value
-lock (like "synchronized" in java)
-asynchronous execution with BeginInvoke
http://boo.codehaus.org/Asynchronous+Design+Pattern
-parameter checking with required attribute:
def foo([required(value > 3)] value as int):
pass
-using statement: (disposes of object when finished using)
using f = System.IO.File.OpenText('using0.boo'):
print(f.ReadLine())
The ExeMaker utility takes a Python script, installs it in a given
directory, and creates an EXE file in the same directory. When you
run the EXE, it locates and loads a suitable Python interpreter DLL,
and runs the script. Usage:
> more myscript.py
print "welcome to my script!"
> exemaker myscript.py c:/bin
c:/bin/myscript.exe ok
c:/bin/myscript.py ok
> myscript
welcome to my script!
The ExeMaker is designed to quickly turn small scripts into command
line utilities, so you can use them (and distribute them) without
having to set up PY associations, create BAT files, or fool around
with more sophisticated bundling tools. Just run exemaker on your
script, and you're done.
You can get ExeMaker from:
http://effbot.org/downloads/#exemaker
enjoy /F
The Element type is a simple but flexible container object, designed
to store hierarchical data structures, such as simplified XML infosets,
in memory. The ElementTree package provides a Python implementation
of this type, plus code to serialize element trees to and from XML files.
ElementTree 1.2.1 is 1.2 plus some performance improvements that have
been backported from the 1.3 development version. The new release is
20-30% faster than 1.2, on many kinds of XML documents.
You can get the ElementTree toolkit from:
http://effbot.org/downloads
Brief documentation and some code samples (including an XML-RPC
unmarshaller in 16 lines) are available from:
http://effbot.org/zone/element.htm
enjoy /F