Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 137 → Rev 138

/branches/BR-0.3/basico/callbacks.py
15,13 → 15,13
 
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit', '3.0')
#~ gi.require_version('WebKit', '3.0')
from gi.repository import GLib
from gi.repository import Gtk
from gi.repository import Gio
from gi.repository import Pango
from gi.repository.GdkPixbuf import Pixbuf
from gi.repository import WebKit
#~ from gi.repository import WebKit
 
from concurrent.futures import ThreadPoolExecutor as Executor
 
628,20 → 628,20
self.debug("Settings reverted to default")
 
 
def update_components_stats(self, *args):
statsviewer = self.gui.get_widget('scrStatsViewer')
view = WebKit.WebView()
chart = self.stats.build_pie_maincomp()
view.load_string(chart, 'text/html', 'UTF-8','/')
self.gui.swap_widget(statsviewer, view)
#~ def update_components_stats(self, *args):
#~ statsviewer = self.gui.get_widget('scrStatsViewer')
#~ view = WebKit.WebView()
#~ chart = self.stats.build_pie_maincomp()
#~ view.load_string(chart, 'text/html', 'UTF-8','/')
#~ self.gui.swap_widget(statsviewer, view)
 
 
def update_categories_stats(self, *args):
statsviewer = self.gui.get_widget('scrStatsViewer')
view = WebKit.WebView()
chart = self.stats.build_pie_categories()
view.load_string(chart, 'text/html', 'UTF-8','/')
self.gui.swap_widget(statsviewer, view)
#~ def update_categories_stats(self, *args):
#~ statsviewer = self.gui.get_widget('scrStatsViewer')
#~ view = WebKit.WebView()
#~ chart = self.stats.build_pie_categories()
#~ view.load_string(chart, 'text/html', 'UTF-8','/')
#~ self.gui.swap_widget(statsviewer, view)
 
 
def check_task_link_button_status(self):
/branches/BR-0.3/basico/window.py
13,7 → 13,7
 
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit', '3.0')
#~ gi.require_version('WebKit', '3.0')
 
from gi.repository import GLib
from gi.repository import GObject
21,7 → 21,7
from gi.repository import Gdk
from gi.repository import Gio
from gi.repository import Pango
from gi.repository import WebKit
#~ from gi.repository import WebKit
from gi.repository.GdkPixbuf import Pixbuf
 
from .service import Service