Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've just started looking into Quickly and Ubuntu desktop/GTK dev, and I'm a bit confused by the organisation of the template that Quickly provides.

Specifically, I'm confused about two related points:

  1. Why is the logic for a window or dialogue split between a file in the lib folder and another in the application folder? For instance, the default template creates a Window.py under the lib folder, and a MyappWindow.py under the application folder. It seems that all of the default logic is in the Window.py file, but the features being implemented in the tutorial ($ quickly tutorial) are written in MyappWindow.py. The confusion for me here might stem from inexperience with gtk.

  2. In general, how should the code be split (for none UI elements). For instance, code to connect to a sqlite db, code to contact web services, other Ubuntu integration code eg dbus service, indicators etc.

Thanks for any help!

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Your code should go in myapp, not myapp_lib.

See here for more information:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.