Tiny Core Extensions > TCE Talk

Creating TCL extention in simple steps !

<< < (3/5) > >>

Pats:
@spence91:
Thanks for the optParser link. It is so easy like C++ or Java..
Just do like:

<code>
from optparse import OptionParser
[...]
def main():
    usage = "usage: %prog [options] arg"
    parser = OptionParser(usage)
    parser.add_option("-f", "--file", dest="filename",
                      help="read data from FILENAME")
    parser.add_option("-v", "--verbose",
                      action="store_true", dest="verbose")
    parser.add_option("-q", "--quiet",
                      action="store_false", dest="verbose")
    [...]
    (options, args) = parser.parse_args()
    if len(args) != 1:
        parser.error("incorrect number of arguments")
    if options.verbose:
        print "reading %s..." % options.filename
    [...]

if __name__ == "__main__":
    main()
</code>

Wow !

@curaga:
Thanks ! I just wanted this to know:

Then it should be C, and graphics with mostly fltk, gtk+, sdl.

Although - nothing against Python, but I just wanted to integrate my little C, C++, Access database knowledge with some good front-end devpment tool ( like  fltk, gtk+ ) to avoid another learning curve - so I think I should better start from TK ! By the way is there much diff btwn fltk, gtk ? Which should I prefer for long term interest.

Since most of my apps are database-centric, one of the friends suggested me to try mySQL-PHP combo, which I know a little-bit on Windoz, but not done any serious efforts in that direction.
If there are no serious issues to use Access database with C, C++ and fltk etc, then I would like to stick to C !

Thats why I am trying to guess, which tools should I use for devlpment in Linux for long term view !

Presently I have started using emacs for editing and compiling my C code, instead of command-line gcc or g++ ! is it OK ? How you guys compile-run-debug-output your code ?

Thanks !

~ Pats

Arslan S.:
for GUI if you look for simplicity fox toolkit is a nice one written in C++
http://www.fox-toolkit.org/

bmarkus:
Check PyGTK at http://www.pygtk.org/

curaga:
Ya, there's a huge abundance of choice out there, and YMMV :)

Most of the gui toolkits have bindings to most languages anyway.

bmarkus:
Another possibility is wxWidgets http://wxwidgets.org/ possibly with wxPython, wxPerl or one of the many supported languages if you do not want to use C.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version