Rapyd: control variables

Cloudthunder digitalorganics at gmail.com
Wed May 24 18:20:32 CEST 2006


Okay, I'm just starting out with rapyd, so bear with me. I have one form and
a label and I gave the label a controlvariable (textvariable). See:

#------------------------------------------------------------------------------#
#
#
#
testme                                    #
#
#
#------------------------------------------------------------------------------#
class testme(Frame):
    def __init__(self,Master=None,**kw):
        self.MyName = StringVar()
        self.MyName = str(type(ClassKernelBasic))


        apply(Frame.__init__,(self,Master),kw)
        self.MyLabel = Label(self,text='replace me!',textvariable=
self.MyName)
        self.MyLabel.pack(side='top')

    #
    #Start of event handler methods
    #

    #
    #Start of non-Rapyd user code
    #

In the main file I imported my module (classkernelbasic) where the comment
told me to and it seemed to have no problem importing. But when I run the
app, nothing shows up in the label or, if something does, it's whatever I
put in the label widget's "text" variable. I also tried setting the text
variable to MyName, but this also failed to display anything. What's wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060524/32a44724/attachment.html>


More information about the Python-list mailing list