Added collection view layout and dummy entries
This commit is contained in:
7
gui.py
7
gui.py
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user