[Pythoncard-users] Text Area
by Moors, Phil other posts by this author
Dec 18 2002 5:56PM messages near this date
RE: [Pythoncard-users] Text Area (fwd)
|
RE: [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
|