Changeset 5 for bug.py

Show
Ignore:
Timestamp:
07/03/06 16:46:20 (3 years ago)
Author:
ploum
Message:

clicking in the list works !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bug.py

    r4 r5  
    11#!/usr/bin/python 
    22# -*- coding: utf-8 -*- 
     3import gtk 
     4import gobject 
    35 
    4 class Bug: 
     6class bug: 
     7 
    58        def setNbr(self,n): 
    69                self.nbr=n 
     
    912                return self.nbr 
    1013 
    11         def setTitle(): 
    12                 print "hello" 
     14        def setTitle(self,string): 
     15                self.title = string 
    1316 
    14         def getTitle(): 
    15                 print "hello" 
     17        def getTitle(self): 
     18                return self.title 
    1619 
    1720        def setDate() : 
     
    2124                print "hello" 
    2225 
    23         def setDscrp() : 
    24                 print "hello" 
     26        def setDescription(self,string) : 
     27                self.description = string 
    2528         
    26         def getDescrp() : 
    27                 print "hello" 
     29        def getDescription(self) : 
     30                return self.description 
    2831 
    2932        def setStatus() : 
     
    4750        def addComment () : 
    4851                print "hello" 
     52 
    4953         
    5054        def __init__(self,n): 
    5155                self.nbr=n 
     56                #initialization of empty values 
     57                self.title="" 
     58                self.description="" 
     59 
     60class comment: 
     61 
     62        def __init__(self,n,c,a): 
     63                self.nbr=n 
     64                self.content=c 
     65                self.author=a