application window class should be in a separate file

Bug #691750 reported by Bryce Harrington
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Undecided
Unassigned
quickly (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: quickly

Quickly creates a Window class for the application, and defines it in bin/<program>.
It would be better to place this class in the same directory as the dialog files.

Revision history for this message
Bryce Harrington (bryce) wrote :

Actually nevermind; poking around in the latest codebase I see this has already been done!

Changed in quickly (Ubuntu):
status: New → Fix Released
Revision history for this message
Michael Terry (mterry) wrote :

Well, sort of. The latest code has moved most of the code to a BaseProjectWindow class. But there is still a bit of the class in the main script, for the user to modify and customize.

But I'm actually thinking now that I'm not sure why we have any widgets in the main script. That it should be reserved for initialization code (which is getting larger all the time as we add more features and the ability to launch from /usr, /opt, or bzr). That way, the python module would hold all the widgets.

I'm re-opening with that intention. Maybe we can rename BaseProjectWindow to just ProjectWindow and move the last bits of code into it.

Changed in quickly (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote : Re: [Bug 691750] Re: application window class should be in a separate file

On Mon, Dec 20, 2010 at 02:28:56PM -0000, Michael Terry wrote:
> Well, sort of. The latest code has moved most of the code to a
> BaseProjectWindow class. But there is still a bit of the class in the
> main script, for the user to modify and customize.
>
> But I'm actually thinking now that I'm not sure why we have any widgets
> in the main script. That it should be reserved for initialization code
> (which is getting larger all the time as we add more features and the
> ability to launch from /usr, /opt, or bzr). That way, the python module
> would hold all the widgets.
>
> I'm re-opening with that intention. Maybe we can rename
> BaseProjectWindow to just ProjectWindow and move the last bits of code
> into it.

Yeah, a pattern a lot of python applications seem to follow is to have a
relatively minimal exec script, and nearly all the real logic in module
files. For some, the only logic in the exec script is option handling
(which quickly moves to other files).

Changed in quickly (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Heru, please do not randomly change bug statuses.

Changed in quickly (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Michael Terry (mterry) wrote :

Actually, this was done for 11.04.

Changed in quickly:
status: New → Fix Committed
Changed in quickly (Ubuntu):
status: Confirmed → Fix Released
Changed in quickly:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.