Showing posts with label qt. Show all posts
Showing posts with label qt. Show all posts

Technical Preview of PySide-Shiboken


Marcelo Lira (PySide developer) announced moments ago on the PySide mailing list the technical preview of PySide-Shiboken:
Hello folks,

today we got the Shiboken generated PySide bindings in a good enough
shape to do a proper release
with tarballs and all the required niceties, instead of rough git
urls. Keep in mind that this is an alfa release,
or a "technical preview" as the kids in my lawn are used to say, some
modules are missing and bugs are not
hard to find.

This PySide release contains bindings for the following modules:

* QtCore
* QtGui
* QtNetwork
* QtWebKit
* QtSvg
* QtXml
* QtTest
* QtOpenGL
* QtSql

Feel free to try your Python code with this version of PySide. You
know how it works: more users == less bugs.
As long as you guys tell us about the bugs: http://bugs.openbossa.org

A noteworthy fact is the first release of the Shiboken C++ binding
generator. Yay!
We strongly encourage it's use to produce non-Qt C++ bindings for
Python, it will make your life easier.
If it turns out to be not so easy, come and talk with us on #pyside
channel (Freenode).

Here follow everything needed for this release, in order of compilation.

API Extractor, version 0.4.0
http://www.pyside.org/files/apiextractor-0.4.0.tar.bz2

Generator Runner, version 0.4.0
http://www.pyside.org/files/generatorrunner-0.4.0.tar.bz2

Shiboken, version 0.2.0
http://www.pyside.org/files/shiboken-0.2.0.tar.bz2

PySide, version 0.3.0
http://www.pyside.org/files/pyside-qt4.6+0.3.0.tar.bz2

You will notice that the size of the generated bindings for the Qt
modules in no way resemble the figures from the Boost.Python version.
And talking about Boost: packagers, be aware that no component depends
on Boost::Graph anymore. Yay^2!

P.S.: cgoncalves, thanks for all the code. And to everyone else that
provided bug reports, patches, beers, etc.


And I followed by adding the usual pos-release-announcement announcement:

Don't want to get your hands dirty and have headaches due to compilation
issues? That's bloody easy! Get this very same release version already
packaged for your distribution from the openSUSE Build Service! Packages
(32bit and 64bit) available for the following distributions:

- openSUSE 11.0, 11.1, 11.2 (for both Qt 4.5 and Qt 4.6 version available),
and Factory
- Fedora 11 and 12
- Mandriva 2009.1 and 2010

You can install PySide package by adding the proper repository from
http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/shiboken/
to your package manager (zypper, yum, urpi, smart or any other rpm-md
compatible) followed by the installation of package 'python-pyside'.

But (!) in case you are all a bleeding-eye person, or simply if you want to
take an extremely important role on the development by testing it and
reporting back to developers, you can even get the regularly snapshots taken
from PySide's Git mainline by adding the devel repository[1].

Or if you happen to be from the old-school and love PySide Boost based you can
still install and use it[2].

I would like to take the opportunity to congratulate and thanks the PySide
team for their magnificent effort given to the project. You guys rock!


[1] http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/devel/
[2] http://download.opensuse.org/repositories/home:/cgoncalves:/pyside:/boost/

Stable versions of PySide packaged


Heads up! I'm glad to inform you all that now stable/released versions of PySide are also available for Mandriva and Fedora besides for openSUSE and snapshots as previously announced. I've updated the download page to reflect this change.

Fedora and Mandriva users: please give me feedback about these packages.

PySide packages for openSUSE, Mandriva and Fedora


As some are already aware of, I've been packaging PySide (including apiextractor, generatorrunner, and boostpythongenerator) for openSUSE since the project has been publicly announced.

Not only stable/released versions have been packaged, but also snapshots taken from mainline git repository with both built and hosted on the openSUSE Build Service in my home dir there (home:cgoncalves:pyside and home:cgoncalves:pyside:devel).

Yesterday I took some time updating the snapshots (ie. home:cgoncalves:pyside:devel) to now build against shiboken instead of the not-yet former boostpythongenerator. Apiextractor, generatorrunner and shiboken built successfully, while PySide did not because I've tried to build it with Qt 4.6 but due to bug #124 it failed, and in the meantime I've switched it back to Qt 4.5.

Moreover, I'm expanding this packaging work to other distributions namely Fedora 11, Fedora 12, Mandriva 2009.1, and Mandriva 2010 sharing the same specfile with openSUSE 11.1, openSUSE 11.2, and openSUSE Factory that already live there for quite some time.

Everything have been built okay for these distributions, except on Mandriva 2009.1 and openSUSE 11.1 where PySide (only) is failing (older gcc version version issues I suppose) and on Fedora 11 i586 and openSUSE 11.2 i586 with PySide failing, too, but due to bug #111

So, in case you are interested in testing these non-openSUSE packages, which I didn't I may add, please do so and report back to me whether they are okayish or not.

Finally, keep in mind that for now I'm only referring to repository home:cgoncalves:pyside:devel (snapshots) and not to stable versions. Plus, you won't get yet a full featured Python bindings for Qt since the PySide team is under heavy work on completing the QtCore module first with Shiboken before moving forward to other modules.

Please refer to [PySide] PySide packages for openSUSE, Mandriva and Fedora for further discussion.

More on Smolt

Minutes after I posted The new shiny Smolt client I've received lots of feedback via email, IM and Novell Bugzilla. The most annoying bugs were:
  • Bug 525324 - [home:cgoncalves:playground] the Privacy Policy window has not scrollbar
  • Bug 525322 - [home:cgoncalves:playground] smolt does not display special chars
All known bugs were fixed and Smolt 1.3.2 tagged.

Q: So, what's really new?!
A:
  1. Smolt KDE4 popup made by Thomas Goettlicher:


  2. The notification will be shown automatically upon KDE startup (X-KDE-autostart-phase=2)

  3. Qt.ToolButtonTextBesideIcon (the text appears beside the icon) is now default per Nuno Pinheiro's suggestion:


  4. Window size auto-adjusting:


    As you can also see BNC #525322 is indeed fixed.

I'm preparing a Smolt RPM update to submit to openSUSE Factory to get included in time for openSUSE 11.2, though you can try it already by using my home:cgoncalves:playground repository:

openSUSE 11.1:
# zypper ar http://download.opensuse.org/repositories/home:/cgoncalves:/playground/openSUSE_11.1/ home:cgoncalves:playground
openSUSE Factory:
# zypper ar http://download.opensuse.org/repositories/home:/cgoncalves:/playground/openSUSE_Factory/ home:cgoncalves:playground

# zypper ref home:cgoncalves:playground
# zypper in smolt-snapshot smolt-popup

As always, please give us feedback!

The new shiny Smolt client

It has been a long since I last blogged (last dating from January)... I haven't blogged since then mostly because I'm not that good when it comes to write more than 5 lines of text and also because I've been busy with my studies/exams which have finished 2 weeks ago. So... what I've been up to in these last 2 weeks?! Well, first week was dedicated to random useless stuffs like catching up on new movies, going out with friends (lots of drinks involved, obviously!) and, most of all, sleeping (yesterday when I woke up and looked at the clock it was 4pm!) - it fells so good sleeping with nothing to worry you about, doesn't it?! wink

Since end of last week I restarted working on my Smolt Qt Client, which was born during first semester exams (nothing to do in that boring and meaningless period, right?). But before I continue, let me quote what the Smolt project is all about:

Smolt is, very simply, a hardware reporting tool for Linux based systems. It was originally written for Fedora and now also supports SuSE, Debian and Ubuntu. It gathers information from users, and stores them in a queryable database with a web frontend that produces statistics.


More information about Smolt here. The original Smolt client was written in GTK but the Smolt maintainer decided to replace it by mine - "With great power comes great responsibility".
The client is quite a straightforward port of the GTK one as you can see:

Smolt GTK client


Smolt Qt client

Noticed the new "Distribution" tab? In a near future it will provides distribution specific information such as installed packages. It has been developed by Sebastian Pipping as a Google Summer of Code 2009 project to support Gentoo, though support for other distributions are currently under development (openSUSE/SUSE Linux, Fedora and Debian):


I will be fixing last bugs found to then push a new release version out late this week, so before openSUSE 11.2 feature/version freeze. In the meantime if you want to try it and even report bugs, checkout my home:cgoncalves:playground repository for the smolt-snapshot package:

openSUSE 11.1:
# zypper ar http://download.opensuse.org/repositories/home:/cgoncalves:/playground/openSUSE_11.1/ home:cgoncalves:playground
openSUSE Factory:
# zypper ar http://download.opensuse.org/repositories/home:/cgoncalves:/playground/openSUSE_Factory/ home:cgoncalves:playground

# zypper ref home:cgoncalves:playground
# zypper in smolt-snapshot

Please, give us feedback! We want to know your opinion about Smolt!
top