Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 135 → Rev 136

/branches/BR-0.3/basico/callbacks.py
153,6 → 153,10
toggled = tgbsearch.get_active()
tgbsearch.set_active(not toggled)
 
def show_about(self, *args):
from .about import About
visor = self.gui.get_widget('visor')
self.gui.swap_widget(visor, About())
 
def show_help(self, *args):
notebook = self.gui.get_widget('mainbox')
/branches/BR-0.3/basico/env.py
16,6 → 16,7
APP = {}
APP['short'] = "basico"
APP['name'] = "SAP Notes Manager for SAP Consultants"
APP['license'] = "The code is licensed under the terms of the GPL v3\nso you're free to grab, extend, improve and fork the code\nas you want"
APP['desc'] = "SAP Notes Manager for SAP Consultants\n\nThe code is licensed under the terms of the GPL v3 so you're free to grab, extend, improve and fork the code as you want"
APP['version'] = "0.3"
APP['authors'] = ["Tomás Vírseda <tomasvirseda@gmail.com>"]
/branches/BR-0.3/basico/sapnoteviewrow.py
98,11 → 98,18
self.bookmark.set_relief(Gtk.ReliefStyle.NONE)
self.bookmark.set_active(sapnote['bookmark'])
if self.bookmark.get_active():
self.bookmark.set_label('🖤')
label = Gtk.Label()
label.set_markup('<b>🖤</b>')
label.modify_font(Pango.FontDescription('Monospace 14'))
self.bookmark.add(label)
#~ self.bookmark.set_label('🖤')
else:
self.bookmark.set_label('♡')
label = Gtk.Label()
label.set_markup('<b>♡</b>')
label.modify_font(Pango.FontDescription('Monospace 14'))
self.bookmark.add(label)
self.bookmark.connect('toggled', self.bookmark_switch)
hboxup.pack_start(self.bookmark, False, False, 0)
hboxup.pack_start(self.bookmark, False, False, 6)
 
# SAP NOTE ID
btnsid = Gtk.Button()
110,11 → 117,11
btnsid.set_hexpand(False)
lblsid = Gtk.Label()
lblsid.set_hexpand(False)
lblsid.modify_font(Pango.FontDescription('Monospace 10'))
lblsid.modify_font(Pango.FontDescription('Monospace 11'))
title = "<b>%10s</b>" % str(int(sid))
lblsid.set_markup("%10s" % title)
btnsid.add(lblsid)
hboxup.pack_start(btnsid, False, False, 0)
hboxup.pack_start(btnsid, False, False, 6)
 
# SAP NOTE TITLE
lblsid = Gtk.Label()
125,13 → 132,16
lblsid.set_selectable(True)
lblsid.set_hexpand(True)
lblsid.set_property('ellipsize', Pango.EllipsizeMode.MIDDLE)
lblsid.modify_font(Pango.FontDescription('Monospace 10'))
hboxup.pack_start(lblsid, True, True, 0)
lblsid.modify_font(Pango.FontDescription('Monospace 11'))
hboxup.pack_start(lblsid, True, True, 6)
 
# SAP NOTE INFO
# Popover button
button = Gtk.Button()
button.set_label('ℹ️')
label = Gtk.Label()
label.set_markup('<b>ℹ</b>️')
label.modify_font(Pango.FontDescription('Monospace 14'))
button.add(label)
button.set_relief(Gtk.ReliefStyle.NONE)
button.set_alignment (0.0, 0.0)
button.set_hexpand(False)
204,6 → 214,8
 
vbox.pack_start(hboxup, True, True, 0)
vbox.pack_start(hboxdown, True, True, 0)
separator = Gtk.Separator(orientation = Gtk.Orientation.HORIZONTAL)
vbox.pack_start(separator, False, False, 3)
self.pack_start(vbox, True, True, 0)
self.show_all()
 
/branches/BR-0.3/basico/sapnoteviewvisor.py
16,11 → 16,10
from gi.repository import Gio
from gi.repository import Gtk
from gi.repository import Pango
from gi.repository.GdkPixbuf import Pixbuf
from gi.repository import Pango
from datetime import datetime
from dateutil import parser as dateparser
 
from .about import About
from .sapnoteviewrow import SAPNoteViewRow
 
 
34,8 → 33,7
self.selected = set()
self.count = 0
self.fbcache = {}
welcome_widget = self.get_welcome_widget()
self.add(welcome_widget)
self.add(About())
 
 
def get_services(self):
/branches/BR-0.3/basico/window.py
166,7 → 166,7
button = Gtk.Button()
button.add(hbox)
button.set_relief(Gtk.ReliefStyle.NONE)
button.connect('clicked', self.uiapp.cb_show_about)
button.connect('clicked', self.cb.show_about)
box.pack_end(button, False, False, 0)
 
# Help