Remove tabpos attribute from notebook
issue2135 review110003
This commit is contained in:
1 parent
ab886614d7
commit
4789e7d818
2 files changed
+16
-30
No files matched your search
@@ -105,21 +105,14 @@ class ParserBoard(object):
|
||||
container.newline()
|
||||
elif node.localName == 'notebook':
|
||||
notebook = gtk.Notebook()
|
||||
if attrs and 'tabpos' in attrs:
|
||||
pos = {'up':gtk.POS_TOP,
|
||||
'down':gtk.POS_BOTTOM,
|
||||
'left':gtk.POS_LEFT,
|
||||
'right':gtk.POS_RIGHT
|
||||
}[attrs['tabpos']]
|
||||
else:
|
||||
if CONFIG['client.form_tab'] == 'top':
|
||||
pos = gtk.POS_TOP
|
||||
elif CONFIG['client.form_tab'] == 'left':
|
||||
pos = gtk.POS_LEFT
|
||||
elif CONFIG['client.form_tab'] == 'right':
|
||||
pos = gtk.POS_RIGHT
|
||||
elif CONFIG['client.form_tab'] == 'bottom':
|
||||
pos = gtk.POS_BOTTOM
|
||||
if CONFIG['client.form_tab'] == 'top':
|
||||
pos = gtk.POS_TOP
|
||||
elif CONFIG['client.form_tab'] == 'left':
|
||||
pos = gtk.POS_LEFT
|
||||
elif CONFIG['client.form_tab'] == 'right':
|
||||
pos = gtk.POS_RIGHT
|
||||
elif CONFIG['client.form_tab'] == 'bottom':
|
||||
pos = gtk.POS_BOTTOM
|
||||
notebook.set_tab_pos(pos)
|
||||
notebook.set_border_width(3)
|
||||
container.wid_add(notebook,
|
||||
|
||||
@@ -432,21 +432,14 @@ class ParserForm(ParserInterface):
|
||||
notebook = gtk.Notebook()
|
||||
notebook.set_scrollable(True)
|
||||
notebook_list.append(notebook)
|
||||
if attrs and 'tabpos' in attrs:
|
||||
pos = {'up':gtk.POS_TOP,
|
||||
'down':gtk.POS_BOTTOM,
|
||||
'left':gtk.POS_LEFT,
|
||||
'right':gtk.POS_RIGHT
|
||||
}[attrs['tabpos']]
|
||||
else:
|
||||
if CONFIG['client.form_tab'] == 'top':
|
||||
pos = gtk.POS_TOP
|
||||
elif CONFIG['client.form_tab'] == 'left':
|
||||
pos = gtk.POS_LEFT
|
||||
elif CONFIG['client.form_tab'] == 'right':
|
||||
pos = gtk.POS_RIGHT
|
||||
elif CONFIG['client.form_tab'] == 'bottom':
|
||||
pos = gtk.POS_BOTTOM
|
||||
if CONFIG['client.form_tab'] == 'top':
|
||||
pos = gtk.POS_TOP
|
||||
elif CONFIG['client.form_tab'] == 'left':
|
||||
pos = gtk.POS_LEFT
|
||||
elif CONFIG['client.form_tab'] == 'right':
|
||||
pos = gtk.POS_RIGHT
|
||||
elif CONFIG['client.form_tab'] == 'bottom':
|
||||
pos = gtk.POS_BOTTOM
|
||||
notebook.set_tab_pos(pos)
|
||||
notebook.set_border_width(3)
|
||||
container.wid_add(notebook,
|
||||
|
||||
Reference in new issue
Block a user