Member Avatar

wxpython i cant figure out the problem. it says that the global neme 'panel' is not defined. Traceback (most recent call last): File "C:\Users\Daniel\Desktop\Duffan Teorem", line 34, in clickbutton wx.StaticText(panel,-1,media,pos=(150,240)) NameError: global name 'panel' is not defined could someone please help me to figure tha problem out? Thanks in Advance import wx class duff(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Duffan Formula', size=(400,300)) panel=wx.Panel(self,-1) g=wx.StaticText(panel,-1,"________________________________________________________",pos=(10,65)) z=wx.StaticText(panel,-1,"Welcome to Duffan Formula!!",pos=(10,10)) r=wx.StaticText(panel,-1,"Here you can discover the score of any girl you are looking for.",pos=(10,30)) q=wx.StaticText(panel,-1,"Use it, with Knowledge!",pos=(10,50)) a=wx.StaticText(panel,-1,"What`s her name?",pos=(10,110)) b=wx.StaticText(panel,-1,"What`s her beauty score?",pos=(10,150)) c=wx.StaticText(panel,-1,"What`s her body score?",pos=(10,190)) average=wx.StaticText(panel,-1,"Average: ", pos=(80,222.5)).SetForegroundColour('blue') self.one=wx.TextCtrl(panel,-1,'Enter name',pos=(110,108),size=(80,20)) self.two=wx.SpinCtrl(panel,-1,'1',pos=(150,148),size=(60,20),min=0,max=100) self.three=wx.SpinCtrl(panel,-1,'1',pos=(130,188),size=(60,20),min=0,max=100) …

Member Avatar
0
4
Member Avatar

Hey, I need to click this [CODE]<span class="default_message">Like</span>[/CODE] In visual basic, please tell me how.

Member Avatar
0
2

The End.