|
From: Ronald D S. <rd...@ea...> - 2001-08-21 02:30:34
|
well, believe it or not, yes after setting show shell to '1', I get the pycrust shell automatically when I run worldclock.py. And I
fixed my clock for you.
I guess i see your point about rsc files containing the 'detail" postionsing of widgets etc. For now, I'm willing to let my widgets
go to default positions.
I guess now I can edit minimal.py and "create" a Pythoncard gui application. Do I dare?
Do you think someone who never reset his clock in three years should give up on gui programming?
----- Original Message -----
From: "Kevin Altis" <al...@se...>
To: <pyt...@li...>
Sent: Monday, August 20, 2001 9:45 PM
Subject: RE: [Pythoncard-users] PythonCard, PyCrust, rsc files etc
> > 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.
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> http://lists.sourceforge.net/lists/listinfo/pythoncard-users
|