I wish to use parameters in a class to change what the class displays how would this be done?

There are a couple of choices. You can initalize the object with some attiributes and include methods for changing them:

#class test
class cA(object):
      a = 42
      def chA(self,b):
          self.a = b
          return (self.a,b)
f=cA()
print f.a
x=f.chA(8)
print x
print f.a
raw_input('done')

In this case "a" is an attribute of the class, "cA", and "chA()" allows "a" to be changed.

You can also allow attributes to be set in the object constructor, using init():

class guiApp:
  def __init__(self,master):
    frame=Frame(master)
    frame.grid()
    self.mkWgts(frame)
...
root=Tk()
app=guiApp(root)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.