|
From: Kevin A. <al...@se...> - 2001-08-21 01:45:03
|
> From: pyt...@li...
> [mailto:pyt...@li...]On Behalf Of Ronald
> D Stephens
>
> I have run the demos fine under IDLE. I have studied the source
> code a of minimal, and the dmoes and see how it sort of is put
> togther.
>
> 1. What is PyCrust, and how is it ot be used?
PyCrust is a package of components that at its simplest provide an
interactive shell interpreter like you get with Boa, PythonWin, IDLE, etc.
But PyCrust isn't tied to one particular IDE environment, so it can be run
standalone (PyCrust\PyCrust.py) or it can be included in other applications
like PythonCard. When you use the "-s" command-line option or set the
'showShell' option to 1 in your pythoncard.user.config.py file, such as mine
which is displayed below, then you'll get a shell when you start a
PythonCard application:
--- pythoncard.user.config.py file
{ 'gui':'wxPython',
'logfile':'pythoncard.log',
'showMessageWatcher':0,
'messageWatcherPosition':(900, 0),
'messageWatcherSize':(200, 300),
'messageWatcherVisible':1,
'showPropertyEditor':0,
'propertyEditorPosition':(750, 350),
'propertyEditorSize':(360, 240),
'propertyEditorVisible':1,
'showShell':1,
'shellPosition':(50, 600),
'shellSize':(700, 230),
'shellVisible':1,
'defaultStackPosition':(5, 5),
'enableLogging':0
}
So, you don't need to run PyCrust standalone, PythonCard provides it for
you. To create a pythoncard.user.config.py file, just copy the
pythoncard.config.py file and rename it, then set the options to your own
preferences.
> 2. Could someone breifly describe the resource files function?
The .rsrc.py files contain the descriptions of all the GUI components in
your application. This is done to keep your layout and code separate as much
as possible. You'll notice there is nothing in minimal.py describing the
field location, position and size of the window. There is a handler for the
file/exit menu item, but it doesn't describe the menu item label or even
what menu the menu item is in. Does that answer your question?
ka
ps. Is your clock set roughly a day in the past? Your emails are stamped
about a day old, so either your clock is off or your ISP is having major
problems with delivering email.
|