PDA

View Full Version : Help making a simple program



FRodrigues
September 17th, 2012, 01:16 AM
Hi,

I'm trying to create a (maybe?) simple program for Ubuntu.
But I don't know where to start and what to do...

What I want is to make a simple "box" in my desktop to write anything I want, like kde's note widget:
http://l.yimg.com/ck/image/A1405/1405394/300_1405394.jpg

But, for now, with less features, something like this (http://i.imgur.com/svkF8.png).

Thanks in advance,
Fernando Rodrigues.

slooksterpsv
September 17th, 2012, 03:24 AM
The first thing to look at is language you want to use; you can use Python, C++, C, Java, C#, Gambas, etc.

After the language; what toolkit (API for windowed applications) e.g. WxWidgets, QT, GTK, Glide, etc.

A lot to choose from, but not as bad as you would think.

I personally use Python and QT.

whatthefunk
September 17th, 2012, 03:34 AM
Something like this might already be available. Check out Screenlets:
http://helpdeskgeek.com/linux-tips/install-desktop-widgets-in-ubuntu/

FRodrigues
September 17th, 2012, 04:21 AM
The first thing to look at is language you want to use; you can use Python, C++, C, Java, C#, Gambas, etc.

After the language; what toolkit (API for windowed applications) e.g. WxWidgets, QT, GTK, Glide, etc.

A lot to choose from, but not as bad as you would think.

I personally use Python and QT.

I'm not worried about languages, but I would like to program with Python.
And can I really choose all of those toolkits to make that box?
Or do I need to do some hacking to make it work?
If It's easy I would choose QT or GTK whatever the most easier to learn and to work.


Something like this might already be available. Check out Screenlets:
http://helpdeskgeek.com/linux-tips/install-desktop-widgets-in-ubuntu/

It's something like that what I want, but I don't want to be dependent of compiz...

slooksterpsv
September 17th, 2012, 04:23 AM
No you can choose what toolkit you want to use. If you want variable opacity, I'd stick with QT or GTK. I think Ubuntu and Unity are shifting more to QT style apps, (I could be wrong).

Vaphell
September 17th, 2012, 04:31 AM
I think Ubuntu and Unity are shifting more to QT style apps, (I could be wrong).

using gtk3 and axing ubuntu2d (Qt) don't really support that notion :)

FRodrigues
September 17th, 2012, 05:40 AM
I read that QT is easier but maybe I'm going to choose GTK+ because It's the Ubuntu's native UI toolkit.
What do you think?

And what do you recommend me to read aside from:
Learn Python The Hard Way (http://learnpythonthehardway.org/book/)
The Python Tutorial (http://docs.python.org/tutorial/index.html)
The Python GTK+ 3 Tutorial (http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html)
Gnome Dev Center's Tutorials, code samples and platform demos in Python (http://developer.gnome.org/gnome-devel-demos/3.5/py.html.en)

stinkeye
September 17th, 2012, 02:28 PM
Hi,

What I want is to make a simple "box" in my desktop to write anything I want, like kde's note widget:


Try xpad.

sudo apt-get install xpad

Tip: When right clicking in the note to bring up the context menu,
you also need to right click on the menu item. Left click doesn't work.

FRodrigues
September 17th, 2012, 05:43 PM
Try xpad.

sudo apt-get install xpad

Tip: When right clicking in the note to bring up the context menu,
you also need to right click on the menu item. Left click doesn't work.

I saw the source code and it was in C.
Never learned how to make a GUI in C so I didn't understand much. : /