Re: Nimrod programming language

2009-05-10 Thread Florian Wollenschein
Andreas Rumpf wrote: Dear Python-users, I invented a new programming language called "Nimrod" that combines Python's readability with C's performance. Please check it out: http://force7.de/nimrod/ Any feedback is appreciated. Regards, Andreas Rumpf

Code - what could be done better?

2009-05-09 Thread Florian Wollenschein
Hi all, here's the main code of thc, my txt to html converter. Since I'm a beginner it is far, far, faaar away from perfect or even good :-) What could be done better? #!/usr/bin/env python # -*- coding: u

Re: hex(dummy)[2:] - issue...

2009-05-07 Thread Florian Wollenschein
Tim Chase wrote: I need some advice :-) I'm using hex(dummy)[2:] to represent a color in hexadecimal format for the bgcolor in an html file. dummy is the color value in RGB of course... Now, if there's an R, G or B value of zero, this command only prints one single 0 instead of two. What's w

Re: Newcomer to Python tutorial question

2009-05-07 Thread Florian Wollenschein
Alan Cameron wrote: I am not sure of this is the right place to ask a question about the tutorial http://docs.python.org/3.0/tutorial/datastructures.html#sets why is the printed result of basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) {'orange', 'banana', 'p

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread Florian Wollenschein
Will Wang wrote: "Florian" == Florian Wollenschein writes: Florian> As you might have mentioned I'm just working on a txt to html converter called Florian> "thc". This project is intended for me to learn Python and now pyQT4 to which I Florian&g

What would YOU like to see in a txt to html converter?

2009-05-07 Thread Florian Wollenschein
As you might have mentioned I'm just working on a txt to html converter called "thc". This project is intended for me to learn Python and now pyQT4 to which I changed a few days ago (started with Tkinter). I have implemented the following features so far: - Giving a title for the html - Choose

hex(dummy)[2:] - issue...

2009-05-06 Thread Florian Wollenschein
Hi there, I need some advice :-) I'm using hex(dummy)[2:] to represent a color in hexadecimal format for the bgcolor in an html file. dummy is the color value in RGB of course... Now, if there's an R, G or B value of zero, this command only prints one single 0 instead of two. What's wrong wit

Re: thc v0.3 - txt to html converter - better code?

2009-05-06 Thread Florian Wollenschein
Richard Brodie wrote: "Stefan Behnel" wrote in message news:4a008996$0$31862$9b4e6...@newsspool3.arcor-online.net... language_map = {'English': 'EN', 'Deutsch': 'DE'} strict_or_transitional = {True: 'Transitional', False: 'Strict'} # this will raise a KeyError for unknown languages

thc v0.3 - txt to html converter - better code?

2009-05-05 Thread Florian Wollenschein
Hi all, here's some code of thc, my txt to html converter programmed with Python and pyQT4: --- if self.rdioBtnTransitional.isChecked(): if self.cmboBoxLang.currentText() == "English": file_o

Re: Open a dialog from MainWindow - pyQT4 - Beginner :-)

2009-05-05 Thread Florian Wollenschein
nickga...@gmail.com wrote: On May 4, 7:31 pm, Florian Wollenschein wrote: Dear folks, I'm just working on a pyQT4 version of my txt to html converter thc (see listick.org for details). I created the MainWindow with QT Designer and then converted it to .py with pyuic4. It works well s

Open a dialog from MainWindow - pyQT4 - Beginner :-)

2009-05-04 Thread Florian Wollenschein
Dear folks, I'm just working on a pyQT4 version of my txt to html converter thc (see listick.org for details). I created the MainWindow with QT Designer and then converted it to .py with pyuic4. It works well so far. Then I created a new UI for my abtDialog (about dialog for my application).