Select lists to show in Wants View

This commit is contained in:
luxick
2017-05-24 13:09:38 +02:00
parent 69a90c2050
commit ca49dec1c2
5 changed files with 65 additions and 12 deletions

View File

@@ -2,6 +2,10 @@ import gi
from cardvault import util
from cardvault import application
from gi.repository import Gtk, GdkPixbuf, Gdk
from typing import Dict, Type
from mtgsdk import Card
import time
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
@@ -123,7 +127,7 @@ class CardList(Gtk.ScrolledWindow):
output[card_id] = card
return output
def update(self, library, colorize=False):
def update(self, library: Dict[str, Type[Card]], colorize=False):
self.store.clear()
if library is None:
return