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
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
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
[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
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
[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
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
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
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
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
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()
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
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:
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
#
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
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.
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
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
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
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
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
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
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
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:
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
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)
--
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
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
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
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
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
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
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
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
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)
--
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
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...
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
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
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:
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
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 =
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)
43 matches
Mail list logo