ctjacobs / pyqso

PyQSO is a contact logging tool for amateur radio operators.
http://christianjacobs.uk/pyqso
GNU General Public License v3.0
79 stars 19 forks source link

Window implementation via glade #47

Closed r4mp closed 7 years ago

r4mp commented 8 years ago

Maybe it's a good idea to seperate gui and program logic via glade files.

try:
from gi.repository import Gtk
except:
print("GTK Not Available")
sys.exit(1)

APPDIR = os.path.dirname(os.path.abspath(file))

class MyWindow(Gtk.Window):

def __init__(self):                                                                                                                                                                       
    self.builder = Gtk.Builder()                                                                                                                                                          
    self.builder.add_from_file("assets/ui/main.glade")                                                                                                                                 
    self.window = self.builder.get_object("windowMain")

...

ctjacobs commented 7 years ago

Good suggestion. I've started working on this in the glade branch.

ctjacobs commented 7 years ago

Addressed by pull request #54.