Re: Wikicodia - The code snippets wiki

2007-07-28 Thread Tina I
Wikicodia Admin wrote: Dears, Wikicodia is a wiki based project for sharing code snippets. We're collecting large number of code snippets for all code-based programming languages, scripts, shells and consoles. We wish you could help us. We're still BETA. Your suggestions, ideas and

Re: Submit form, open result in a browser

2007-07-27 Thread Tina I
theju wrote: Is there a way to submit a form and then open the resulting page in the default browser? (Writing the form submission code is not a problem by the way) There is a library called Client Form that does this for you. wwwsearch.sourceforge.net/ClientForm/ After the form is

Submit form, open result in a browser

2007-07-27 Thread Tina I
Hi, Is there a way to submit a form and then open the resulting page in the default browser? (Writing the form submission code is not a problem by the way) I guess what I'm asking is how I can get the resulting URL and feed it to the webbrowser module. I need to do it this way because the site

Re: python extra

2007-07-11 Thread Tina I
[EMAIL PROTECTED] wrote: On Jul 8, 12:59?pm, Neal Becker [EMAIL PROTECTED] wrote: Just a little python humor: http://www.amazon.com/Vitamin-Shoppe-Python-Extra-tablets/dp/B00012NJ... Aren't there any female Python programmers? No, of course not. Oh, and guys: If you take those pills

Re: Goto

2007-06-17 Thread Tina I
Daniel Nogradi wrote: How does one effect a goto in python? I only want to use it for debug. I dasn't slap an if clause around the portion to dummy out, the indentation police will nab me. http://entrian.com/goto/ LOL!! * major flashback to horrible BASIC programs from the eighties * Back

Re: Unsubscribing from the mailing list

2007-05-28 Thread Tina I
[EMAIL PROTECTED] wrote: Hi All, I do not know if this is the correct group to ask this question. But since mailman is python-based I thought i would ask here. I had subscribed to a mailing list called [EMAIL PROTECTED] adventitiously. I then wanted to reverse my decision and so tried to

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Tina I
David Boddie wrote: On May 16, 7:44 am, Tina I [EMAIL PROTECTED] wrote: A binary would be ideal. I'll look into the freeze modules and Pyinstaller. Even if they don't handle huge things like Qt it would be a step in the right direction if it handles smaller third part modules. And maybe

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Tina I
Kevin Walzer wrote: Tina I wrote: Kevin Walzer wrote: And maybe the smartest thing to do would be to dump PyQt and just go for tkinter, however ugly it is :/ Tkinter doesn't have to be ugly. I sell a proprietary Tkinter app commercially on OS X: http://www.codebykevin.com

Distributing programs depending on third party modules.

2007-05-15 Thread Tina I
Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the existence of the required modules. If they're not found I have it exit with a message that it need

Re: Distributing programs depending on third party modules.

2007-05-15 Thread Tina I
Kevin Walzer wrote: What platform are you doing this on? On the Linux platform, dependency hell of this sort is pretty much unavoidable, because there are so many different packaging systems (apt, rpm, and so on): it's standard to let the package manager handle these dependencies. And

Re: Init style output with python?

2007-05-06 Thread Tina I
Maxim Veksler wrote: Is there are frame work or something in python that would allow me to do this (quickly) ? If not, ideas how I should I be getting this boring task of: 1. get screen width You can look into the 'curses' module and do something like: screen = curses.initscreen()

Re: how update a qListView in backgroud

2007-05-02 Thread Tina I
Reinaldo Carvalho wrote: Hi, I programming with qt module and i have a qWidgetTab with a qListView inside, and i need update the qListView every 5 seconds, how do this on transparent mode to user. I do a function to update, but i dont know call then. I will start this update when user

Re: lowercase class names, eg., qtgui ? (PyQt4)

2007-04-26 Thread Tina I
Glen wrote: Hello, In the file generated by pyuic4 from Designer's .ui file I noticed the use of lower case class names (I'm assuming these are the names of classes, not modules). For example: It imports thusly: from PyQt4 import QtGui then uses things like:

Re: Catching a specific IO error

2007-04-25 Thread Tina I
Gabriel Genellina wrote: You can get the 2 as the errno exception attribute. BTW, 2 == errno.ENOENT try: export = open(self.exportFileName , 'w') except IOError, e: if e.errno==errno.ENOENT: # handle the No such file or directory error #

Catching a specific IO error

2007-04-24 Thread Tina I
Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the following exception is raised: IOError: [Errno 2] No such file or directory: /some/path/file.txt So at

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Tina I
Glen wrote: Hello again, I don't blame anyone for not answering my last post, since I obviously hadn't spent much time researching, but I've come a little ways and have another question. How can I better format text output to a QTextEdit object? I'm inserting 5 columns into each row.

Re: Append data to a list within a dict

2007-04-15 Thread Tina I
Alex Martelli wrote: Tina I [EMAIL PROTECTED] wrote: ... He he... at the age of 40 I'm well beyond school work ;) Why would that be? My wife's over 40, yet she's a student (currently at Stanford -- they were overjoyed to admit her, with lot of life experience as well as previous

Re: Append data to a list within a dict

2007-04-14 Thread Tina I
Paul Rubin wrote: Tina I [EMAIL PROTECTED] writes: ListDict = { 'one' : ['oneone' , 'onetwo' , 'onethree'], 'two' : ['twoone' , 'twotwo', 'twothree'], 'three' : ['threeone' , 'threetwo', threethree']} Now I want to append 'twofour' to the list of the 'two' key but I can't figure out how

Re: Append data to a list within a dict

2007-04-14 Thread Tina I
Michael Bentley wrote: On Apr 14, 2007, at 12:39 AM, Tina I wrote: Say I have the following dictionary: ListDict = { 'one' : ['oneone' , 'onetwo' , 'onethree'], 'two' : ['twoone' , 'twotwo', 'twothree'], 'three' : ['threeone' , 'threetwo', threethree']} Now I want to append 'twofour

Append data to a list within a dict

2007-04-13 Thread Tina I
Hello group, Say I have the following dictionary: ListDict = { 'one' : ['oneone' , 'onetwo' , 'onethree'], 'two' : ['twoone' , 'twotwo', 'twothree'], 'three' : ['threeone' , 'threetwo', threethree']} Now I want to append 'twofour' to the list of the 'two' key but I can't figure out how to

Re: __init__.py

2007-03-27 Thread Tina I
Jorgen Grahn wrote: On Mon, 26 Mar 2007 08:27:19 +0200, Tina I [EMAIL PROTECTED] wrote: Tina I wrote: When looking at other peoples code (to learn from it) I keep seeing an empty file named __init__.py. What's the purpose of this? Thanks Tina Duh! Never mind... found it. Kinda neat

__init__.py

2007-03-25 Thread Tina I
When looking at other peoples code (to learn from it) I keep seeing an empty file named __init__.py. What's the purpose of this? Thanks Tina -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__.py

2007-03-25 Thread Tina I
Tina I wrote: When looking at other peoples code (to learn from it) I keep seeing an empty file named __init__.py. What's the purpose of this? Thanks Tina Duh! Never mind... found it. Kinda neat actually :) T -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help to learn Python

2007-03-23 Thread Tina I
PythonBiter wrote: Hi everyone, I'm very new in this Group as well Python language. I want to learn Python. So could you please advice me, and guide me how can i become master in Python ! Thanks, Partha Lots of great resources for beginners:

Re: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-20 Thread Tina I
cjl wrote: Hi. I am trying to screen scrape some stock data from yahoo, so I am trying to use urllib2 to retrieve the html and beautiful soup for the parsing. Maybe (most likely) I am doing something wrong, but when I use urllib2.urlopen to fetch a page, and when I view 'page source' of

Re: getting user id (from an arbitrary sys user)

2007-03-14 Thread Tina I
Gerardo Herzig wrote: hi all. What i need to know is if there is some function like os.getuid(), but taking an argument (the username, off course), so i can do getuid('myuser') Thanks you dudes! Gerardo How about simply: import commands userid = commands.getoutput(id -u username) --

Re: PyQt4: Clickable links in QLabel?

2007-03-07 Thread Tina I
David Boddie wrote: On Thursday 01 March 2007 09:00, Tina I wrote: A short and sweet question: Is it possible to put a clickable link in a QLabel that will open in the systems default browser? Yes. I tried to put in some HTML but it did (of course?) simply display the code instead

PyQt4: Clickable links in QLabel?

2007-03-01 Thread Tina I
Hi everyone, A short and sweet question: Is it possible to put a clickable link in a QLabel that will open in the systems default browser? I tried to put in some HTML but it did (of course?) simply display the code instead of a link. I also tried to set openExternalLinks 'true' but then pyuic4

HTML to dictionary

2007-02-27 Thread Tina I
Hi everyone, I have a small, probably trivial even, problem. I have the following HTML: b METAR: /b ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG br / b short-TAF: /b ENBR 270800Z 270918 VRB05KT FEW020 SCT040 br / b long-TAF: /b ENBR 271212 VRB05KT FEW020 BKN030

Re: HTML to dictionary

2007-02-27 Thread Tina I
Tina I wrote: Hi everyone, I have a small, probably trivial even, problem. I have the following HTML: b METAR: /b ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG br / b short-TAF: /b ENBR 270800Z 270918 VRB05KT FEW020 SCT040 br / b long-TAF: /b ENBR 271212 VRB05KT

Re: HTML to dictionary

2007-02-27 Thread Tina I
Thanks people, I learned a lot!! :) I went for Herbert's solution in my application but I explored, and learned from, all of them. Tina -- http://mail.python.org/mailman/listinfo/python-list

irclib problems

2007-02-11 Thread Tina I
I'm playing around with the 'irclib' library working with the first example at http://www.devshed.com/c/a/Python/IRC-on-a-Higher-Level-Concluded/ When copying the example verbatim and running it from a console it works flawlessly. It connects to the server, join the channel and sits there

Re: interacting with shell - another newbie question

2007-02-10 Thread Tina I
James wrote: Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it prompts me with userid, then

Re: Hacking in python

2007-02-10 Thread Tina I
zefciu wrote: enes naci wrote: i would like to know about hacking in python too whether its illegal or not is not the point and anyway it doesn't mean i'm gong to use it. If you mean hacking as modyfying the code of interpreter of libraries - it is perfectly legal, as Python is Open

Re: Calling J from Python

2007-02-08 Thread Tina I
Hendrik van Rooyen wrote: I am under the impression that Loki had a daughter called Hel ... - Hendrik Yes. And Hel was the queen of the underworld which was also called 'Hel' (Which of course is 'hell', in modern Norwegian : helvete) --

Re: Newbie Question

2007-02-08 Thread Tina I
azrael wrote: but look out for pyqt. there is one thing in the eula i don't like. there is written that if you use qtWidgets and they like the aplication, you have to give up all your rights of the aplication. patent, idea, money everything is gone. i know this is open source, but maybe one

Re: Calling J from Python

2007-02-07 Thread Tina I
Gosi wrote: On Feb 7, 3:46 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], Gosi wrote: I like to use J for many things and I think that combining Python and J is a hell of a good mixture. I was able to follow this sentence up to and including the word hell...

Re: Prefered install method?

2007-01-26 Thread Tina I
Diez B. Roggisch wrote: These days, it's setuptools. Google for it. It will let you distribute your application in a convenient way as so-called EGG (basically a ZIP-file), additionally you will get support for installing scripts in /usr/bin or wherever you like, and you have versioning

Prefered install method?

2007-01-25 Thread Tina I
Another noob question: I have written my first linux application that might actually be of interest to others. Just for fun I also wrote an install script that put the files in the common directories for my distro (Debian). That is in /usr/local/. (This particular program can be run directly

PyQt4 strangeness

2007-01-23 Thread Tina I
I'm trying to 'convert' my self from Qt3 to Qt4 (it rocks!) and one thing seem strange: With Qt3 I usually did from qt import *, but this does not seem to work with Qt4. I have to use from PyQt4 import QtGui , QtCore and also have to use QtCore.something. Like when connecting a button:

Re: PyQt4 strangeness

2007-01-23 Thread Tina I
Phil Thompson wrote: The module structure of PyQt reflects the library structure of Qt. Qt4 has different libraries to Qt3 so PyQt4 has different modules to PyQt3. The top level PyQt4 module ensures that PyQt3, PyQt4 (and eventually PyQt5) can all be installed side by side in the same

PyQt: QListviewItemIterator

2007-01-16 Thread Tina I
Hi, I'm fairly new to both Python and Qt so please bare with me. I have a QListView with a number of columns. In order to filter the output I iterate using QListViewItemIterator looking for the string entered by the user (filterString). Currently I do it this way: it =

Re: PyQt: QListviewItemIterator

2007-01-16 Thread Tina I
David Boddie wrote: When it.current() returns None. You can rewrite what you already have like this: it = QListViewItemIterator(self.authListView) while it.current(): item = it.current() if item.text(0).contains(filterString) or \ item.text(1).contains(filterString)