ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
Re: [pythoncard] GUI resource editors/GUI builders and formats
by Roman Suzi other posts by this author
Jun 21 2001 6:53PM messages near this date
GUI resource editors/GUI builders and formats | Re: [pythoncard] GUI resource editors/GUI builders and formats
On Thu, 21 Jun 2001, Kevin Altis wrote:

> Having a tool capable of building resource files for describing windows,
> menus, widgets is a good first step towards a PythonCard.

Glade does it. It describes resources in XML format.

I suggest to try to describe what are windows, cursors, menus, etc. from
object point of view. (that is to define classes).

For example (lets dream):

Button attributes:

primary:
ID
name
number
owner
script
content
icon
title (what is written/put upon it)
position == ((x, y), (x1, y1))
style
skin
family
visible
width
height

methods:
on()
off()
toggle()
part_number()
send()

What else?

script example could look like this:

--------------------------------

def on_mouse_click(target):
  target.toggle()

def on_mouse_double_click(target):
  target.owner.send(("mouse_click"))

# this is not for button:
def on_key(target, keycode):
  if keycode == " ":
    do_something()

--------------------------------

If we will have such descriptions for all PythonCard objects, it will be
half a job, because then we will be able to make mappings to differents
Tk's and (I think) is is relatively easy to provide usual drawing
capabilities to put/resize/move/delete objects.

Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd@[...].. _/
_/ Thursday, June 21, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Useless Invention: Motorcycle seat-belts." _/
Thread:
Kevin Altis

Kevin Altis
Skip Montanaro
Kevin Altis
Skip Montanaro
Kevin Altis
Roman Suzi

Roman Suzi
Greg Ewing
Kevin Altis
Roman Suzi
Kevin Altis
Roman Suzi
Andy Todd

Robin Dunn

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved