Crayon

CrayonThe link between Instagram and my blog is now working quite well.

Not 100% sure yet how it all works but pictures seems to make their way to my blog OK.

Then I can edit at leisure…

Posted in Home Life | 2 Comments

Python -QT ?!

Python -QT ?!I have been trying to Program some simple applications with my MAC OSX machine and Python but using a modern GUI feel.

I found Python to be easy syntax and wanted a similarly easy interface building tool.

I found that QT from the Nokia site would do that but it was a long process to get it all installed properly.

Python comes pre-installed on OSX so that bit is straight forward.

The install of QT is a bit more complicated. Need to download the SDK form Nokia but as well the Libraries Package from a second place on the Nika Website. Then you need to run the install procedures of the various packages including SIP and pyQT. (Documentation is in the downloaded directories).

Then you have to change the configuration of the QT Creator to allow for compiling on QT even if really you will only use the “Design” part for the GUI.

update configuration of project
Clic Projects on left of main window
Go to build settings / build steps
Clic Details
setting to add "-spec macx-g++" in the additional argument
rebuild everything so that config change is applied

 

Once the GUI is designed on QT, save the .ui file, then “process” the file with the tool :

then you can run the pyic4 program to convert the .ui file into a full python program.

pyuic4 -x mainwindow.ui -o program.py

Here is a quick video describing how its done : Here.

Just got it working now on my machine and managed to get a ridiculously simple running, now need to find the time to learn the language etc…

 

Posted in Coding | Leave a comment

Python Programming on Mac

Have been trying for weeks to get QT Creator to work on my Mac System.

I want to program in Python and build easy user interfaces with QT Designer.

Currently struggling with :

Got Python 2.7 working

Got Qt Creator working

Can’t get a build to run…

So much time to achieve nothing !

Posted in Coding | Leave a comment

Playing with Arduino

I love my Arduino electronics.

Playing with Arduino

  1. It is simple to program
  2. It is open source
  3. It is cheap
  4. There is plenty of Shields
  5. There is plenty of books
So far, I have built Temperature monitors/loggers , internet shields, gps trackers, led games
Just got a small printer and plenty of Leds… 
Posted in Electronics | Leave a comment

Brighton

Posted in Home Life | Leave a comment