Display card images and local image caching for faster loading times
This commit is contained in:
8
gui.py
8
gui.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user