Display card images and local image caching for faster loading times

This commit is contained in:
luxick
2017-02-14 14:46:28 +01:00
parent 6e7707a0e7
commit ca28a4dc12
4 changed files with 77 additions and 12 deletions

8
gui.py
View File

@@ -1,14 +1,15 @@
import gi
import collection
import search
import config
import util
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="MTG Collector (working title) v0.1")
Gtk.Window.__init__(self, title=config.applicationtitle)
self.set_border_width(2)
self.set_size_request(1000, 700)
@@ -30,7 +31,10 @@ class MainWindow(Gtk.Window):
win = MainWindow()
# Load local image Data
util.imagecache = util.reload_image_cache()
win.connect('delete-event', Gtk.main_quit)
win.show_all()
Gtk.main()