call class python using Geany in Ubuntu
<p>I used Geany for editor python in ubuntu, and I created a file containing the class.</p>

<p>this my file. Time1.py</p>

<pre><code>class Time:

    def __int__(self):
        self.hour = 0
        self.minute = 0
        self.second = 0

    def printMilitary(self):
        print "%.2d:%.2d:%.2d" % \
          (self.hour, self.minute, self.second),

    def printStandard(self):

        standardtime = ""
        if self.hour == 0 or self.hour == 12:
            standardTime += "12:"
        else:
            standardTime += "%d:" % ( self.hour % 12 )
        standardTime += "%.2d:%.2d" % ( self.minute, self.second )

        if self.hour &lt; 12:
            standardTime += " AM"
        else:
            standardTime += " PM"
        print standardTime,
</code></pre>

<p>so I called it in mytime.py</p>

<pre><code>from Time1 import Time

time1 = Time()

print "The attributes of time1 are: "
print "time1.hour:", time1.hour
print "time1.minute:", time1.minute
print "time1.second:", time1.second
</code></pre>

<p>after that I tried to run this script. but I got error. This the error</p>

<blockquote>
  <p>The attributes of time1 are: 
  time1.hour:
  Traceback (most recent call last):
    File "untitled.py", line 31, in 
      print "time1.hour:", time1.hour
  AttributeError: Time instance has no attribute 'hour'</p>
</blockquote>

<p>can you help me</p>
