Added collection view layout and dummy entries

This commit is contained in:
luxick
2017-01-31 20:32:04 +01:00
parent bddb38c224
commit b06474db04
3 changed files with 86 additions and 2 deletions

7
gui.py
View File

@@ -1,17 +1,21 @@
import gi
import collection
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 v0.1")
self.set_border_width(2)
self.set_size_request(1000, 700)
self.notebook = Gtk.Notebook()
self.add(self.notebook)
self.collectionView = Gtk.Box()
self.collectionView.add(Gtk.Label("My Magic Card Collection!"))
self.collectionView.add(collection.CollectionView())
self.searchView = Gtk.Box()
self.searchView.add(Gtk.Label("Search the whole Magic Card Library!"))
@@ -19,7 +23,6 @@ class MainWindow(Gtk.Window):
self.deckView = Gtk.Box()
self.deckView.add(Gtk.Label("View and organize your Decklists!"))
self.notebook.append_page(self.collectionView, Gtk.Label("Collection"))
self.notebook.append_page(self.deckView, Gtk.Label("Decks"))
self.notebook.append_page(self.searchView, Gtk.Label("Search"))