I have banged my head to the wall few last weeks with Qt. This is not because it is stupid (all but that), but because I weren't familiar with it - and of course, because I wanted to write everything by myself, not with QtDesigner. But now it is time to say, the gui (for version 0.7) is now pretty much ready. All there is left to do now is little cleaning (simplification) to the code and transfer the functionally from old GTK pyKake to new Qt pyKake. The transfering old code to new will probably take some extra time (because I need to Qtlize some functions) but I think the hardest part is now done (don't tell me I'm wrong).
So, after the break, I will show off the screenshots of dummy gui (its almost totally non-functionnally at the moment).
"Things should be made as simple as possible, but no simpler."
— Albert Einstein (1879–1955)
Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts
Thursday, September 16, 2010
Saturday, August 7, 2010
My Maemo development environment
The autum is almost here, so I think it is time to post something to here again. For that purpose, this message is the number one, I started to write this at the 8th of May, I did some edits during the June and July, but finally, I will post this to here, now the 7th of August, so it takes only 4 months to develope a blog post, but I had to say that it had been beautiful summer here at Finland (and still is, you can't say it is autumn when there is still almost 30 degrees of Celsius outside).
When I started to write pyKake, I just used the PyGTK Editor in my N900. And to create the first version of it, that was all I needed. Then, after I release the preview version of it (like I want to call that version 0.3), I find out that it was easier to edit and rewrite code in laptop and then move it to the device to test. That was nice and easy... as long as there weren't need to do multiple test in short time period. Problem was, that for every test you had to use email or mass storage mode (selected when you plug device to the computer) to get needed files into it.
So I did little research and find this nice guide how to to create SSH connection to the device, and again I was satisfied. In this point I just connect the device to computer and create a network connection to it (or basically 2 of them, because I also use the device as a mobile broadband). After this all I needed to do was to take the SFTP connection with FileZilla to it and trasfer the files.
So, in this point of code writing, I edited code with Gedit and send it to the N900 over the SFTP and then tested it (in the device), and that was pretty good way to code... Until I needed to do it multiple times in very short perioids. So I started the research again and ended up to this dynamic trio: Geany as an IDE, N900 as a testing environment and a small script to automatically upload modified source files to the device (so, I don't need to do it manually every time I save the file :P ). And the result? Well, when I edit the source and save the file, the script (if it is running) notice the modify and send the new one with the scp to the device, neat isn't it? And I had to mention, that if you use terminal plug-in of Geany to take ssh connection to the device and run the test, you got all (error) output you need in to the Geany, so it is simple to read during the coding. I like this, I like this a lot, and how you can do it buy yourself? Well, now I tell it to you, right after the jump.
When I started to write pyKake, I just used the PyGTK Editor in my N900. And to create the first version of it, that was all I needed. Then, after I release the preview version of it (like I want to call that version 0.3), I find out that it was easier to edit and rewrite code in laptop and then move it to the device to test. That was nice and easy... as long as there weren't need to do multiple test in short time period. Problem was, that for every test you had to use email or mass storage mode (selected when you plug device to the computer) to get needed files into it.
So I did little research and find this nice guide how to to create SSH connection to the device, and again I was satisfied. In this point I just connect the device to computer and create a network connection to it (or basically 2 of them, because I also use the device as a mobile broadband). After this all I needed to do was to take the SFTP connection with FileZilla to it and trasfer the files.
So, in this point of code writing, I edited code with Gedit and send it to the N900 over the SFTP and then tested it (in the device), and that was pretty good way to code... Until I needed to do it multiple times in very short perioids. So I started the research again and ended up to this dynamic trio: Geany as an IDE, N900 as a testing environment and a small script to automatically upload modified source files to the device (so, I don't need to do it manually every time I save the file :P ). And the result? Well, when I edit the source and save the file, the script (if it is running) notice the modify and send the new one with the scp to the device, neat isn't it? And I had to mention, that if you use terminal plug-in of Geany to take ssh connection to the device and run the test, you got all (error) output you need in to the Geany, so it is simple to read during the coding. I like this, I like this a lot, and how you can do it buy yourself? Well, now I tell it to you, right after the jump.
Friday, April 16, 2010
Introducing pyKake
This is my first Maemo application, written in Python with GTK library for graphical user interface and Lirc to handle infrared. It is very simple and clear with main purpose to work as infrared remote control for DSLRs. It includes remote commands for Shutter and Bulb (on and off buttons). There is also + and - buttons, but I haven't yet find them other use than change pictures in picture view (but if it is possible to remotely use focus in camera, these are probably buttons to do it), still very handy if you have connect camera to TV and go through the picture show.
I got the basic idea for this application, when I tested Shutter (by Tom Waelti), from Maemo.org, it is nice small desktop widget to remote control shutter in DSLR, but I was still missing some options, most important thing of these was Bulb. So I decide that what a heck, I can do it by myself! So I read some manuals to catch the idea of maemo programming, and borrowed the idea of Lirc from Whaelti and started to code.
I got the basic idea for this application, when I tested Shutter (by Tom Waelti), from Maemo.org, it is nice small desktop widget to remote control shutter in DSLR, but I was still missing some options, most important thing of these was Bulb. So I decide that what a heck, I can do it by myself! So I read some manuals to catch the idea of maemo programming, and borrowed the idea of Lirc from Whaelti and started to code.
Subscribe to:
Posts (Atom)