Reply
Thread Tools
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#1
Well, after a monumental struggle I think we have N900 Cairo Clock ported to Python Qt on its way. Here is a teaser



And here is the 7 lines of code that has taken the best part of a day
to read the Cairo Clock Themes into Qt

Code:
def paintEvent(self, event):
        self.scene = QtGui.QGraphicsScene()
        for path in self.theme:
            self.svgItem=QGraphicsSvgItem(path)
            renderer=self.svgItem.renderer()
            self.scene.addItem(self.svgItem)
            
        self.grView.setScene(self.scene)
__________________
N900_Email_Options Wiki Page

Last edited by mikec; 2010-03-30 at 15:26.
 

The Following 9 Users Say Thank You to mikec For This Useful Post:
Posts: 286 | Thanked: 100 times | Joined on Dec 2009 @ down south
#2
how long before we get some sort of release? really looking forward to testing.thanks
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#3
Hey mikec, I see that you're using one of the newer clock themes that are available.

How did you get that to show on the desktop correctly?

I've tried all of the newer ones and the full image of the clock get's cut and gutted under shin's version in Diablo.
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#4
first release will be in the next week or so, but will not be a widget, as I have to learn how to convert an app to a widget.

Of course I dont know what I dont know
__________________
N900_Email_Options Wiki Page
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#5
Originally Posted by Addison View Post
Hey mikec, I see that you're using one of the newer clock themes that are available.

How did you get that to show on the desktop correctly?

I've tried all of the newer ones and the full image of the clock get's cut and gutted under shin's version in Diablo.
@Addison QtSVG does all the magic, look at the quality also. Shin was rendering to a bitmap before putting to screen and you have to worry about size, antialiasing and all sorts of crap. Qt just seems to do its thing. Next step is to animate the hands, which with QGraphics view should be really simple, and will allow us to do some serious SVG animation in the future.

Have a look at this clock

http://tavmjong.free.fr/INKSCAPE/DRAWINGS/clock2.svg
__________________
N900_Email_Options Wiki Page
 

The Following 5 Users Say Thank You to mikec For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#6
Wow!

Thanks for the quick reply!

You and shin need to start sharing information because I really do love having this on the desktop.
 
Posts: 286 | Thanked: 100 times | Joined on Dec 2009 @ down south
#7
Originally Posted by mikec View Post
@Addison QtSVG does all the magic, look at the quality also. Shin was rendering to a bitmap before putting to screen and you have to worry about size, antialiasing and all sorts of crap. Qt just seems to do its thing. Next step is to animate the hands, which with QGraphics view should be really simple, and will allow us to do some serious SVG animation in the future.

Have a look at this clock

http://tavmjong.free.fr/INKSCAPE/DRAWINGS/clock2.svg
now that clock is awesome!!! look forward to seeing some mad and wonderful designs on my n900.
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#8
We have a ticking svg clock

__________________
N900_Email_Options Wiki Page
 

The Following 3 Users Say Thank You to mikec For This Useful Post:
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#9
wow, that does look amazing!!
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 286 | Thanked: 100 times | Joined on Dec 2009 @ down south
#10
Originally Posted by mikec View Post
We have a ticking svg clock

will this app allow for all those designs out there to work? cannot wait much more lol

i appreciate u not the original creator but am i able to donate some $$$ your way?
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:05.