Thread: [gtkmvc-users] Quickly
Brought to you by:
cavada
From: Tobias W. <to...@ce...> - 2010-03-24 14:14:08
|
Hi, just saw a more generic progen. Also creates setup.py ;) https://wiki.ubuntu.com/Quickly |
From: Roberto C. <ca...@fb...> - 2010-03-24 14:28:05
|
Il 03/24/2010 03:13 PM, Tobias Weber ha scritto: > https://wiki.ubuntu.com/Quickly Interesting. It would be worth creating a template for gtkmvc r. |
From: Luke M. <luk...@in...> - 2010-03-24 22:09:11
|
On Wed, 2010-03-24 at 15:27 +0100, Roberto Cavada wrote: > Il 03/24/2010 03:13 PM, Tobias Weber ha scritto: > > > https://wiki.ubuntu.com/Quickly > > Interesting. It would be worth creating a template for gtkmvc > r. I'm currently developing a small app using Quickly and gtkmvc (from svn for builder support). If all goes to plan I'll be writing templates for gtkmvc next week. How should I distribute them for review? (They'll probably need a good look over, I'm a Python novice and my coding skills weren't that good to start with.) Luke Morton. |
From: Tobias W. <to...@ce...> - 2010-03-25 14:19:04
|
On 24.03.2010, at 23:09, Luke Morton wrote: > How should I distribute them for review? Send a link. Roberto, one point of Quickly is that it comes with the templates. It wouldn't be included with GtkMVC but the other way round. > (They'll probably need a good look over, Unfortunatly so far no work went into making Quickly play nice with anything else than Ubuntu, which I don't know. |
From: Roberto C. <ca...@fb...> - 2010-03-25 08:31:40
|
Il 03/24/2010 11:09 PM, Luke Morton ha scritto: > How should I distribute them for review? If you want I think you may send them to this mailing list. I am sure you are going to get good feedback from its users. Then if you wish to, we might distribute the template for gtkmvc along with the framework. However, I am still not sure about what Quickly is and how it looks like. In order to decide its integration I'll need to be spending some time looking at its details, and how you exploited it in your template. Unfortunately, time is a rare resource this month, so the process may be taking more time than your expectations :( Thanks in advance, r. |
From: Luke M. <luk...@in...> - 2010-03-25 22:01:00
|
On Thu, 2010-03-25 at 09:31 +0100, Roberto Cavada wrote: > If you want I think you may send them to this mailing list. I am > sure you are going to get good feedback from its users. Will do. > Then if you wish to, we might distribute the template for gtkmvc > along with the framework. However, I am still not sure about what > Quickly is and how it looks like. In order to decide its integration > I'll need to be spending some time looking at its details, and how > you exploited it in your template. To be honest, I'm not sure how Quickly templates are generated or read, but I'm sure all will become clear soon enough. > Unfortunately, time is a rare resource this month, so the process > may be taking more time than your expectations :( Not a problem. I'd rather see gtkmvc reach 2.0.0 than see Quickly templates integrated :) I'll be developing and using the templates one way or the other though. Regards, Luke Morton |
From: Luke M. <luk...@in...> - 2010-04-14 07:17:41
|
I've got the Quickly templates to a point where they can be used. The template itself is an adaptation of the default ubuntu-project template that comes with Quickly. The following files (in the archive should explain everything: README: how to install the template. TODO: issues I'm aware of. (I especially need help with anything tagged with a FIXME.) NOTES: list of design decisions I made in adapting the ubuntu-project template. Template available at: http://lukemorton.com.au/test/gtkmvc-project.tar.gz Quickly available at: https://launchpad.net/quickly I've been trying to post these all day and keep thinking of things I've missed, so I've decided to bite the bullet and put them up as is. All comments and suggestions for improvement are welcome. Cheers, Luke. |
From: Tobias W. <to...@ce...> - 2010-04-14 11:40:38
|
On 14.04.2010, at 09:17, Luke Morton wrote: > TODO: issues I'm aware of. (I especially need help with anything tagged with a FIXME.) gtkmvc.View.__init__ already does set_transient, so you can remove that code. > NOTES: list of design decisions I made in adapting the ubuntu-project template. I agree that gtkmvc should offer something like your add_subview. But it's not very flexible. I like how these guys just unparent() and let the developer pack it somewhere manually: http://bitbucket.org/aafshar/pygtkhelpers-main/ BTW Qt does not require window instances, you can just display a VBox as a toplevel... |
From: Luke M. <luk...@in...> - 2010-04-14 23:11:28
|
On Wed, 2010-04-14 at 13:40 +0200, Tobias Weber wrote: > > TODO: issues I'm aware of. (I especially need help with anything tagged with a FIXME.) > > gtkmvc.View.__init__ already does set_transient, so you can remove that code. Done. > > NOTES: list of design decisions I made in adapting the ubuntu-project template. > > I agree that gtkmvc should offer something like your add_subview. But it's not very flexible. I like how these guys just unparent() and let the developer pack it somewhere manually: > > http://bitbucket.org/aafshar/pygtkhelpers-main/ Good point. I've replaced the method with get_subview_widget(view). It simply unparent() the top widget from a view and returns it. New version uploaded to http://lukemorton.com.au/test/gtkmvc-project.tar.gz Cheers. |
From: Tobias W. <to...@ce...> - 2010-05-05 11:32:49
|
On 15.04.2010, at 01:11, Luke Morton wrote: > http://lukemorton.com.au/test/gtkmvc-project.tar.gz Thanks! Maybe you could put up a repository somewhere? Finally got myself a http://virtualboxes.org/images/ubuntu/ and actually tried it. The background image is great, do you have the source for it? I'd remove the widget subclassing stuff. It's not necessary in gtkmvc and potentially confusing. |
From: Luke M. <luk...@in...> - 2010-05-13 04:02:13
|
> On Wed, 2010-05-05 at 13:32 +0200, Tobias Weber wrote: > > > Thanks! Maybe you could put up a repository somewhere? I've chatted with the Quickly devs, and they suggested branching Quickly and adding the new templates there. Once everyone is happy they they can be merged into trunk. So that's what I did. You can get the source from launchpad: bzr branch lp:~luke-morton/quickly/gtkmvc-application (Note that this includes the Quickly source as well as the template which is located in quickly/data/templates/gtkmvc-application.) > > I'd remove the widget subclassing stuff. It's not necessary in gtkmvc and potentially confusing. I've removed the subview stuff and created a new command to generate a dialog which adds the AboutView as a subview. This way it's still there as an example but not cluttering the main template. I changed the templates substantially to take advantage of changes to Quickly 0.4. Most commands are now inherited from ubuntu-application. The main commands to review are: add [dialog|demo|subview] doc |
From: Tobias W. <to...@ce...> - 2010-05-13 20:42:13
|
On 13.05.2010, at 06:02, Luke Morton wrote: >>> I'd remove the widget subclassing stuff. It's not necessary in gtkmvc and potentially confusing. > > I've removed the subview stuff That's not what I meant. The subclasses of gtk.Window or Dialog that the Ubuntu template uses can be removed, along with the Glade catalogs. Just replace them with the regular ones in the XML. You already moved all code into the gtkmvc.View subclasses. I notice you include gtkmvc from SVN. I'm all for copying the framework into each application, but it should probably be a release, or at least have a version number that makes it clear that the documentation on the website may not apply. This is a great chance to show more people how nice Observer is :) |
From: Luke M. <luk...@in...> - 2010-05-13 22:19:32
|
On Thu, 2010-05-13 at 22:42 +0200, Tobias Weber wrote: > On 13.05.2010, at 06:02, Luke Morton wrote: > >>> I'd remove the widget subclassing stuff. It's not necessary in > gtkmvc and potentially confusing. > That's not what I meant. The subclasses of gtk.Window or Dialog that > the Ubuntu template uses can be removed, I thought that might be what you meant. I'll have a go, but last time I tried that I made a mess of things (I'm relatively inexperienced in GTK+ programming). I have had a bit of experience writing gtkrc themes though, and being able to write a rule for a particular application is nice, and only possible if that application can be uniquely identified. So from that perspective, I think the subclasses are actually a good idea. > along with the Glade catalogs. Just replace them with the regular ones > in the XML. You already moved all code into the gtkmvc.View > subclasses. I'll try, but again, I'm not 100% sure what I'm doing :) > I notice you include gtkmvc from SVN. I'm all for copying the > framework into each application, but it should probably be a release, > or at least have a version number that makes it clear that the > documentation on the website may not apply. I had to do that for builder support. But you're right, it should have a version number. If the changes to templates regarding subclassing and glade catalogs mean that significant portions of the code inherited from ubuntu-application have to be changed then I'd rather not do that. In Quickly 0.4 it's possible to inherit commands (like quickly design) so we benefit from any future bug fixes/improvements to those commands Since Quickly isn't yet stable (from an API point of view), this is all the more important. Nevertheless, I'll look into both and and see if I can do them. > This is a great chance to show more people how nice Observer is :) Is there a particular example you'd like me to include? Or do you just mean in general? Luke. |
From: Luke M. <luk...@in...> - 2010-05-14 04:54:18
|
On Thu, 2010-05-13 at 22:42 +0200, Tobias Weber wrote: > The subclasses of gtk.Window or Dialog that the Ubuntu template uses > can be removed, along with the Glade catalogs. Just replace them with > the regular ones in the XML. Victory is mine! There are no longer separate Glade catalogs and views don't contain subclass definitions to support the now obsolete catalog files. > I notice you include gtkmvc from SVN. I'm all for copying the > framework into each application, but it should probably be a release, > or at least have a version number that makes it clear that the > documentation on the website may not apply. I added a README file in the gtkmvc folder, as well as a note in the GtkLabel in the main window. As before, it's all available at: bzr branch lp:~luke-morton/quickly/gtkmvc-application |