[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gui widgets - Are there any sample programs?
From: |
Alex Lancaster |
Subject: |
Re: Gui widgets - Are there any sample programs? |
Date: |
24 Mar 2000 01:47:56 -0700 |
User-agent: |
Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 |
>>>>> "AO" == Akiko Ogawa <- RS/GIS lab <address@hidden>> writes:
AO> Hello, I want to master all the nice widgets in Gui library. But
AO> I cannot figure out how to create those widgets. Swarm
AO> documentation doesn't help me figure out how and in what order I
AO> should call those methods.
AO> I realized that simple examples are much more helpful to learn
AO> Swarm than a thick documentation.
AO> Does anyone know if there are some good examples available?
There's no official "standalone" reference guide to the GUI, as such.
I'd suggest:
1) Looking at the Swarm User Guide (Beta):
http://www.santafe.edu/projects/swarm/swarmdocs/userbook/userbook.html
2) Investigating the wealth of user-created apps to be found in the
anarchy section of the ftp site:
ftp://ftp.swarm.org/pub/swarm/src/users-contrib/anarchy
Many of them have non-standard examples of using some of the GUI
features not found in heatbugs, mousetrap et. al., if that's what
you're looking for.
[Btw, before you get too invested in the current API of the GUI
library you should know that the GUI API has evolved over time, and is
really more of a repository of
things-that-were-needed-for-various-random-reasons, than an engineered
set of GUI widgets. It's also based on the Tk widget set and relies
on using the Tcl interpreter to go-between Objective C and Tk, which
adds fragility at times. One of things we may do in the future will
be replacing it with a more robust front-end probably based on the
Swing/AWT toolkit for Java. I'd recommend that for folks interested
in serious GUI work to consider using some of the third-party
libraries (e.g. Diva:
http://www-cad.eecs.berkeley.edu/diva
is a set of widgets for drawing graph data structures if you're using
the Java interface to Swarm)].
Good luck!
Alex
--
Alex Lancaster * address@hidden * www.santafe.edu/~alex * 505 984-8800 x242
Santa Fe Institute (www.santafe.edu) & Swarm Development Group (www.swarm.org)
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.