Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Python Qt SVG Clock on its way

    Reply
    Page 1 of 4 | 1   2     3   | Next | Last
    mikec | # 1 | 2010-03-26, 23:27 | Report

    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)

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by mikec; 2010-03-30 at 15:26.
    The Following 9 Users Say Thank You to mikec For This Useful Post:
    Addison, attila77, dread123, Helmuth, ioan, mannakiosk, noobmonkey, Patola, ysss

     
    dread123 | # 2 | 2010-03-27, 07:48 | Report

    how long before we get some sort of release? really looking forward to testing.thanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Addison | # 3 | 2010-03-27, 07:53 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mikec | # 4 | 2010-03-27, 07:55 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mikec | # 5 | 2010-03-27, 07:59 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 5 Users Say Thank You to mikec For This Useful Post:
    Addison, dread123, mannakiosk, noobmonkey, Texrat

     
    Addison | # 6 | 2010-03-27, 08:01 | Report

    Wow!

    Thanks for the quick reply!

    You and shin need to start sharing information because I really do love having this on the desktop.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dread123 | # 7 | 2010-03-27, 08:14 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mikec | # 8 | 2010-03-27, 16:53 | Report

    We have a ticking svg clock


    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to mikec For This Useful Post:
    dread123, noobmonkey, Texrat

     
    noobmonkey | # 9 | 2010-03-27, 16:56 | Report

    wow, that does look amazing!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dread123 | # 10 | 2010-03-27, 17:04 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 4 | 1   2     3   | Next | Last
vBulletin® Version 3.8.8
Normal Logout