Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible.

import wx

class Example(wx.Frame):

    def __init__(self,parent,id):

        wx.Frame.__init__(self,parent,id,'Example', size=(312,130))

        ntext=wx.StaticText(panel, -1, "Name: ", pos=(3,6))
        name=wx.TextCtrl(panel, -1, "Your name", size=(220, -1), pos=(60,2))

        Namo=wx.Button(panel, -1, "Namo", pos=(100,50), size=(60,30))
        self.Bind(wx.EVT_BUTTON, self.GetName, Namo)

    def GetName(self, evt):


if __name__ == '__main__':

But I'm getting some errors, and I have modified the code a couple of times, but I still wasn't able to get it to work. I also, don't want to use that Text Box, that pops up and asks you for an input, because I want to add more TextCrtls in it, and maybe some check boxes. Thank you.

Edited 6 Years Ago by Dan08: n/a

This question has already been answered. Start a new discussion instead.