diff --git a/gui.py b/gui.py index 1d9f76e..ab3106b 100644 --- a/gui.py +++ b/gui.py @@ -1,11 +1,14 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- - -from gi.repository import Gtk, Gio +# Python imports import os.path import sys +# Gtk and Gobject +import gi +gi.require_version('Gtk', '3.0') +from gi.repository import Gtk, Gio + # Internationalization support import gettext import locale diff --git a/requirements.txt b/requirements.txt index 59ff2a1..4f96265 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,8 @@ feedparser==5.2.1 idna==2.10 importlib-metadata==1.7.0 Pillow==7.2.0 +pycairo==1.19.1 +PyGObject==3.38.0 pyserial==3.4 python-escpos==2.2.0 pyusb==1.0.2 diff --git a/res/smallprint.gtkbuilder b/res/smallprint.gtkbuilder index 29f6734..e3440e6 100644 --- a/res/smallprint.gtkbuilder +++ b/res/smallprint.gtkbuilder @@ -176,7 +176,20 @@ True True - + + True + False + vertical + + + + + + + + + + @@ -189,7 +202,23 @@ - + + True + False + vertical + + + + + + + + + + + + 1 + @@ -203,7 +232,23 @@ - + + True + False + vertical + + + + + + + + + + + + 2 +