Legend:
- Unmodified
- Added
- Removed
-
page.py
r28 r29 5 5 try: 6 6 import gtk 7 import gtk.glade8 7 import gobject 9 8 except: 10 9 sys.exit(1) 10 11 ####################### description_in_the_widget_name hack ################## 12 ####################### We want to change this ############################### 13 14 # functions related but not in the object 15 def tab_descr(widget) : 16 # this is part of the ugliest hack 17 # spank me ! 18 string = widget.get_name() 19 # this must be modified if we change the string representation 20 array=string.split("\n\n",2) 21 return array 22 23 def read_descr(string) : 24 # return the widget to open 25 # needed when reading bookmarks from file 26 print "to implement" 11 27 12 28 class page : … … 23 39 # naughty naughty zout ! 24 40 self.widget.set_name(self.descr) 41 # in the future, the idea is to create an invisible widget 42 # and put it in a hbox or something with our widget 43 # but, as long as no one complains... 44 45 ############################################################################# 46 ############### We are in object "page" ##################################### 47 48 ############## here start how to store description in a string ############## 49 25 50 26 51 # this function returns two strings in a tuple : … … 45 70 return [title, zename] 46 71 47 #def readTitle(self,string) : 48 # array=string.split("\n\n",2) 49 # return array 72 73 ############## No need to modify below this line, public methods ############ 50 74 51 75 def get_widget(self) : … … 57 81 def get_title(self) : 58 82 return self.title 59 60 # functions related but not in the object61 def tab_descr(widget) :62 # this is part of the ugliest hack63 # spank me !64 string = widget.get_name()65 array=string.split("\n\n",2)66 return array
