RE: [Pythoncard-users] Text Area
by Kevin Altis other posts by this author
Dec 18 2002 6:32PM messages near this date
[Pythoncard-users] Text Area
|
RE: [Pythoncard-users] Text Area
Phil, that works fine on my system, Windows 2000.
The debug menu About box reports:
PythonCard version 0.7 <- version number in cvs
wxPython version: 2.3.3.1
PyCrust version: 0.8 <- cvs again
Python version: 2.2.2 (#37, Oct 14, 200, 17:02:34)[MSC 32 bit(Intel)]
Platform: win32
Sigh, that you can no longer use Ctrl+C to copy read-only text from the
wxTextCtrl when it is read-only. I'm going to have to make a custom dialog
with a Copy system info to clipboard option.
So, do other PythonCard samples work? How about the wxPython demo? If other
PythonCard samples work and you're on Linux or Mac OS X, is the
#!/usr/bin/python
different? That won't be used on Windows. When you say that text doesn't
show up do you mean that the app window comes up fine, but then you can't
type text in the field or something else? If there is a traceback error when
the app runs, then what is it.
Finally, for people posting sample programs, it is probably simpler to
attach a zip file with all required files and then show a portion of the
problem code in the email with your question. That way there won't be any
email wrapping or differences introduced via copy and paste, filenames, etc.
when trying to recreate the files for testing. Zip files can have the line
endings converted when unzipped, so it takes care of the cross-platform
issues too.
Thanks,
ka
> -----Original Message-----
> From: pythoncard-users-admin@[...].net
> [mailto:pythoncard-users-admin@[...].net]On Behalf Of Moors,
> Phil
> Sent: Wednesday, December 18, 2002 9:56 AM
> To: PythonCard Users
> Subject: [Pythoncard-users] Text Area
>
>
>
> I think maybe something is wrong with my installation. Or, I'm doing
> something really dumb. Is there anything wrong with the following
> minimal?
> I can't get any text to show up.
>
> #!/usr/bin/python
>
> """
> __version__ = "$Revision: 1.6 $"
> __date__ = "$Date: 2002/07/29 17:44:55 $"
> """
>
> from PythonCardPrototype import model
>
> class Minimal(model.Background):
>
> def on_menuFileExit_select(self, event):
> self.Close()
>
> def on_Area51_mouseClick(self, event):
> self.components.Area51.text = "Hello."
>
> if __name__ == '__main__':
> app = model.PythonCardApp(Minimal)
> app.MainLoop()
>
> Here's the resource file:
>
> {'stack':{'type':'Stack',
> 'name':'Minimal',
> 'backgrounds': [
> {'type':'Background',
> 'name':'bgMin',
> 'title':'Minimal PythonCard Application',
> 'position':(630, 166),
> 'size':(288, 260),
>
> 'menubar': {'type':'MenuBar',
> 'menus': [
> {'type':'Menu',
> 'name':'menuFile',
> 'label':'&File',
> 'items': [
> {'type':'MenuItem',
> 'name':'menuFileExit',
> 'label':'E&xit\tAlt+X',
> },
> ]
> },
> ]
> },
> 'components': [
>
> {'type':'TextArea',
> 'name':'Area51',
> 'position':(40, 10),
> 'size':(200, 200),
> 'backgroundColor':(255, 255, 255),
> },
>
> ] # end components
> } # end background
> ] # end backgrounds
> } }
-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Moors, Phil
Kevin Altis
Moors, Phil
Kevin Altis
Kevin Altis
|