Active Topics

 



Notices


Reply
Thread Tools
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#11
Originally Posted by som3a View Post
really thanks ,, was a helpful post !
u say that , i have to master the python then go to C , ?
No, what he's saying is you can use python.

If you are happy with performance of your programs, then you can keep using python.

However, if you think your programs are running too slow, then consider learning C.....

Overall, I think python is easier language to learn, especially if you are teaching yourself and not taking classes..
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 

The Following 2 Users Say Thank You to ArchiMark For This Useful Post:
Posts: 112 | Thanked: 30 times | Joined on Jun 2012 @ Jeddah,Saudi Arabia
#12
Originally Posted by MartinK View Post
Python is quite similar to Basic (and Pascal) in its syntax without any unnecessary brackets, semicolons, etc. Some people even call it "executable pseudocode".

See one of the posts above for nice Python programming examples.
ok.thanx for the suggestion
what about QT/QML...

anyone else's suggestions...
http://talk.maemo.org/showpost.php?p...42&postcount=9
 

The Following User Says Thank You to unexpected For This Useful Post:
electroaudio's Avatar
Posts: 381 | Thanked: 336 times | Joined on Jan 2011 @ Stockholm, Sweden
#13
Originally Posted by unexpected View Post
ok.thanx for the suggestion
what about QT/QML...
PyGTK and PyQT4 are just different ways to create graphic userinterfaces and not languages in themselves, and QML is javascript.

ARM Machinecode!
__________________
Deskypplet , a desktop for N900 *RIP*
 

The Following User Says Thank You to electroaudio For This Useful Post:
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#14
My suggestions for programming on :
- Nokia N900 : nano, KhtEditor and IPython to code in Python & PyQt. "Derivative 0.1" was coded on device in 1h when I was in a bus station 8-)
- Nokia N9 : nano, KhtSimpleText and IPython to code in Python & QML.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 

The Following 2 Users Say Thank You to rcolistete For This Useful Post:
som3a's Avatar
Posts: 132 | Thanked: 34 times | Joined on May 2011 @ sudan
#15
Originally Posted by rcolistete View Post
My suggestions for programming on :
- Nokia N900 : nano, KhtEditor and IPython to code in Python & PyQt. "Derivative 0.1" was coded on device in 1h when I was in a bus station 8-)
- Nokia N9 : nano, KhtSimpleText and IPython to code in Python & QML.
Derivative ,, was coded on python ?
am so new on programming language , am gonna kill u by questions , in programming application the application's theme what do use for making it , am good on photoshop used it a lot making really good things , and am good at web-development , i noticed on some applications when i going around the system/applications i found that the applications images putted on an separated folder related it by a code or some thing like that (just like the folders on HTML ,is QT/QML what it care about themes ?
 
sifo's Avatar
Posts: 1,359 | Thanked: 1,292 times | Joined on Oct 2011 @ Tartus.Syria
#16
in programming application the application's theme what do use for making it
it is not a theme, it is a GUI created with qt/qml/c++....... and linked with the actual application scripts.
am i wrong ?

./sifo
__________________
[ N900-Crack ] [ The Purge ] [ New Smiles ] [ New icons ] [ ? ]
" Hey ! I've just met you and this is crazy, so install cssu maybe ? "
Please help out keeping Maemo.org alive, and consider donating.
https://www.facebook.com/ZoRk7
 

The Following User Says Thank You to sifo For This Useful Post:
som3a's Avatar
Posts: 132 | Thanked: 34 times | Joined on May 2011 @ sudan
#17
i think these GUI called on some how themes !
i was thinking that it made by QT/QML ,,

can any one gimme a simple definition for QT/QML
i kinda confused right now , is these QT/QML are self independent programming language , or it count on other languages ?
 
electroaudio's Avatar
Posts: 381 | Thanked: 336 times | Joined on Jan 2011 @ Stockholm, Sweden
#18
Originally Posted by som3a View Post
i think these GUI called on some how themes !
i was thinking that it made by QT/QML ,,

can any one gimme a simple definition for QT/QML
i kinda confused right now , is these QT/QML are self independent programming language , or it count on other languages ?
QT is the graphical toolkit that KDE is built upon while GTK is the toolkit for Gnome, they are *not* programming languages in themselves.
They provide a framework with functions to call from programs to make and control windows, buttons and a lot of other gui elements.
Both of them are just #includes in your programminglanguage of choice, and you can choose whichever toolkit you like.
...And maybe even mix them in the same program??

Here is a explanation of QML http://en.wikipedia.org/wiki/QML
But in short, it is just a special version of javascript with QT functions built into it.

Some codingexamples for QT and GTK in Python

Hello world written in Python with QT.
Code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Here we provide the necessary imports.
# The basic GUI widgets are located in QtGui module. 
import sys
from PyQt4.QtGui import *
 
# Every PyQt4 application must create an application object.
# The application object is located in the QtGui module.
a = QApplication(sys.argv)
 
# The QWidget widget is the base class of all user interface objects in PyQt4.
# We provide the default constructor for QWidget. The default constructor has no parent.
# A widget with no parent is called a window. 
w = QWidget()
 
w.resize(320, 240)  # The resize() method resizes the widget.
w.setWindowTitle("Hello, World!")  # Here we set the title for our window.
w.show()  # The show() method displays the widget on the screen.
 
sys.exit(a.exec_())  # Finally, we enter the mainloop of the application.
And the same helloworld program with GTK
Code:
import gtk
 
def create_window():
    window = gtk.Window()
    window.set_default_size(200, 200)
    window.connect('destroy', gtk.main_quit)
 
    label = gtk.Label('Hello World')
    window.add(label)
 
    label.show()
    window.show()
 
create_window()
gtk.main()
__________________
Deskypplet , a desktop for N900 *RIP*

Last edited by electroaudio; 2012-08-14 at 10:25.
 

The Following 2 Users Say Thank You to electroaudio For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:58.