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?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to