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
[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

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