Legend:
- Unmodified
- Added
- Removed
-
bug.py
r4 r5 1 1 #!/usr/bin/python 2 2 # -*- coding: utf-8 -*- 3 import gtk 4 import gobject 3 5 4 class Bug: 6 class bug: 7 5 8 def setNbr(self,n): 6 9 self.nbr=n … … 9 12 return self.nbr 10 13 11 def setTitle( ):12 print "hello"14 def setTitle(self,string): 15 self.title = string 13 16 14 def getTitle( ):15 print "hello"17 def getTitle(self): 18 return self.title 16 19 17 20 def setDate() : … … 21 24 print "hello" 22 25 23 def setD scrp() :24 print "hello"26 def setDescription(self,string) : 27 self.description = string 25 28 26 def getDescr p() :27 print "hello"29 def getDescription(self) : 30 return self.description 28 31 29 32 def setStatus() : … … 47 50 def addComment () : 48 51 print "hello" 52 49 53 50 54 def __init__(self,n): 51 55 self.nbr=n 56 #initialization of empty values 57 self.title="" 58 self.description="" 59 60 class comment: 61 62 def __init__(self,n,c,a): 63 self.nbr=n 64 self.content=c 65 self.author=a
