Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 353 → Rev 354

/branches/BR-0.4/basico/services/srv_annot.py
60,6 → 60,7
ANNOTATION_FILE_METADATA = LPATH['ANNOTATIONS'] + annotation['AID'] + '.json'
ANNOTATION_FILE_CONTENT = LPATH['ANNOTATIONS'] + annotation['AID'] + '.adoc'
annotation['Timestamp'] = self.srvutl.timestamp()
annotation['Created'] = self.srvutl.timestamp()
 
# Write annotation content first and delete it
with open(ANNOTATION_FILE_CONTENT, 'w') as fc:
/branches/BR-0.4/basico/services/srv_callbacks.py
777,6 → 777,7
 
def gui_annotation_widget_clear(self):
a_wdg_timestamp = self.srvgui.get_widget('gtk_label_human_timestamp')
a_wdg_timestamp_created = self.srvgui.get_widget('gtk_label_timestamp_created')
a_wdg_title = self.srvgui.get_widget('gtk_entry_annotation_title')
a_wdg_type = self.srvgui.get_widget('gtk_combobox_annotation_type')
a_wdg_text = self.srvgui.get_widget('gtk_textview_annotation_text')
785,6 → 786,7
a_wdg_link_type = self.srvgui.get_widget('gtk_combobox_annotation_link_type')
 
a_wdg_timestamp.set_text('')
a_wdg_timestamp_created.set_text('')
a_wdg_title.set_text('')
textbuffer = a_wdg_text.get_buffer()
textbuffer.set_text('')
/branches/BR-0.4/basico/widgets/wdg_annot.py
474,7 → 474,7
 
def get_metadata_from_widget(self):
"""
C:237, 4: Missing method docstring (missing-docstring)
C:237, 4: Missing method docstring (missing-docstring)
"""
annotation = {}
a_wdg_aid = self.srvgui.get_widget('gtk_label_aid')
/branches/BR-0.4/basico/widgets/wdg_visor_toolbar.py
117,18 → 117,18
self.tool_bar.insert(tool, -1)
 
# Fullscreen toggle button
tool = Gtk.ToolItem()
tool.set_expand(False)
icon = self.srvicm.get_new_image_icon('basico-fullscreen', 24, 24)
box = self.srvgui.add_widget('gtk_box_container_icon_fullscreen', Gtk.Box())
box.pack_start(icon, False, False, 0)
button = Gtk.ToggleButton()
button.set_relief(Gtk.ReliefStyle.NONE)
button.connect('toggled', self.srvclb.gui_toggle_fullscreen)
button.add(box)
tool.add(button)
tool.set_tooltip_markup('<b>Fullscreen/Window mode</b>')
self.tool_bar.insert(tool, -1)
# ~ tool = Gtk.ToolItem()
# ~ tool.set_expand(False)
# ~ icon = self.srvicm.get_new_image_icon('basico-fullscreen', 24, 24)
# ~ box = self.srvgui.add_widget('gtk_box_container_icon_fullscreen', Gtk.Box())
# ~ box.pack_start(icon, False, False, 0)
# ~ button = Gtk.ToggleButton()
# ~ button.set_relief(Gtk.ReliefStyle.NONE)
# ~ button.connect('toggled', self.srvclb.gui_toggle_fullscreen)
# ~ button.add(box)
# ~ tool.add(button)
# ~ tool.set_tooltip_markup('<b>Fullscreen/Window mode</b>')
# ~ self.tool_bar.insert(tool, -1)
 
# Toolbar initial settings
self.set_visible(True)