~dcaro/clicompanion/fix-801906

« back to all changes in this revision

Viewing changes to clicompanionlib/tabs.py

  • Committer: duanedesign
  • Date: 2011-03-24 16:31:52 UTC
  • mfrom: (66.1.8 clicompanion)
  • Revision ID: duanedesign@gmail.com-20110324163152-zpr79z0oy9hw9glz
[MERGE] lp:~bdfhjk/clicompanion/bdfhjk Adds show/hide UI and hides tabs when not in use. fixes lp:739488 lp:740182

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import view
30
30
 
31
31
CONFIGFILE = os.path.expanduser("~/.config/clicompanion/config")
 
32
 
 
33
 
 
34
#definition gcp - how many pages is visible
32
35
gcp=0;
33
36
 
34
37
class Tabs(object):
55
58
        global gcp
56
59
        gcp += 1
57
60
        pagenum = ('Tab %d') % gcp
58
 
 
 
61
        if gcp > 1:
 
62
                        notebook.set_show_tabs(True)
59
63
        box = gtk.HBox()
60
64
        label = gtk.Label(pagenum)
61
65
        box.pack_start(label, True, True)