Python Newbie

2005-07-14 Thread linuxfreak
Hi all,
   I came accross this article by Eric Raymond in which he has sung
peans about the python language. Well that has whetted my appetite...
So I decided to get down and dirty. But alas I got down but not dirty..
i cant seem to find a good tutorial to help me get started. Whats the
next best thing to do? Ask the pros and where do you find them...in a
mailing list of course. So heres me asking if anyone has any pointers
to some good basic python tutorial. Something that teaches one to get
going.
Thanks a ton guys,



Linuxfreak

-- 
http://mail.python.org/mailman/listinfo/python-list


wxPython Menu problem

2005-07-18 Thread linuxfreak
Hi all,

I have a problem. I want to add items to a Menu iteratively and I'm
stuck. Heres a snippet of my code

fileMenuChoices=[('&New','Start a New Document',self.onClick),

 ('&Open File...','Open an Existing Document',
self.onClick),

 ('&Save','Save Current Document', self.onClick),

 ('---'),

 ('E&xit','Close Window', self.onClick),

 ('&About','Information', self.onClick)]

.
.
.
.


 fileMenu = wxMenu()
for opt in fileMenuChoices:
fmID = wxNewId()
if(opt[0] != '-'):
fileMenu.Append(fmID,opt[0], opt[1])
EVT_MENU(self,fmID,opt[2])
else:
fileMenu.AppendSeparator()
#Creating the MenuBar
menuBar = wxMenuBar()
menuBar.Append(fileMenu, "&File")
self.SetMenuBar(menuBar) #Add menubar to the Frame (Window)

def onClick(self,e):
   ...
   ...




The problem is I get an error saying  name 'self' not defined...

Any help will be appreciated

-- 
http://mail.python.org/mailman/listinfo/python-list


Python IDE

2005-07-18 Thread linuxfreak
Hi guys,
   Got going with python...and i must say its a pretty cool language.
Been using Xemacs to write me programs. But I want an IDE that would
give me auto-completion, online help and the like... Tried SPE and
Dr.Pyhton but the former crashes regulary and the latter is quite
unweildy and does not have a great many features. I quite like the UML
feature found in SPE but the damn thing crashes way too often. What are
you guys using and what do you think is the best IDE...or should i
stick with Xemacs/emacs???

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python IDE

2005-07-21 Thread linuxfreak
ok will give it a shot.
I had tried the 0.7.2 version with wxPython 2.6 and the moment i place
the cursor in a class name and pressed the space or the enter
key.booom there it went crashing without a trace. But i did like
what little i saw of it (apart from the crashes, of course) and the UML
diagram feature was just great. Lemme use this version and then i can
give some feedback. One more thingI'm trying to use the
wxStyledTextCtrl in one of my programsany pointers to where I can
find a good tutorialTried yellowbrain.com but it just has the docs
and not a tutorial. Thanks a ton and keep up the good work

-- 
http://mail.python.org/mailman/listinfo/python-list


wxPythin installation woes

2005-07-21 Thread linuxfreak
Hi all,

Was working with python 2.3 in a fedora core 3 machine. I upgraded it
to Fedora Core 4 with a clean install. So now I have python 2.4
installed. But when I try to install wxPython for python 2.4 using an
rpm file i downloaded from the wxpython web site i get dependencies
errors. Turns out that  libstdc++.so.5 is needed but I checked and i
see that libstdc++.so.6 is installed on my system. Help needed guys and
needed pronto. Thanks a ton once again :)

-- 
http://mail.python.org/mailman/listinfo/python-list


wxPythin installation woes

2005-07-21 Thread linuxfreak
Hi all,

Was working with python 2.3 in a fedora core 3 machine. I upgraded it
to Fedora Core 4 with a clean install. So now I have python 2.4
installed. But when I try to install wxPython for python 2.4 using an
rpm file i downloaded from the wxpython web site i get dependencies
errors. Turns out that  libstdc++.so.5 is needed but I checked and i
see that libstdc++.so.6 is installed on my system. Help needed guys and
needed pronto. Thanks a ton once again :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wxPythin installation woes

2005-07-21 Thread linuxfreak
Does anyone know if the same can be done in fedora distributions???



Sybren Stuvel wrote:
> linuxfreak enlightened us with:
> > Turns out that  libstdc++.so.5 is needed but I checked and i see
> > that libstdc++.so.6 is installed on my system.
>
> On my system (Ubuntu, based on Debian), I can have multiple versions
> of libstdc++ installed at the same time.
>
> Sybren
> --
> The problem with the world is stupidity. Not saying there should be a
> capital punishment for stupidity, but why don't we just take the
> safety labels off of everything and let the problem solve itself?
>  Frank Zappa

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Detecting computers on network

2005-07-21 Thread linuxfreak
How about sending an ICMP echo packet to your broadcast address and
checking which hosts send a reply

-- 
http://mail.python.org/mailman/listinfo/python-list


wxPython & Fedora Core 4

2005-07-22 Thread linuxfreak
Hi guys,

  Has anyone installed wxPython on Fedora Core 4. Apparently it need
the libstdc++.so.5 file while Fedora installs the newer libstdc++.so.6
file. I tried installing the libstdc rpm from fedora core 3 which would
have installed the required file but Fedora does not allow multiple
versions of the same file . Man   this is frustrating. Help desparately
required..


Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Detecting computers on network

2005-07-22 Thread linuxfreak
How about sending an ICMP echo packet to your broadcast address and
checking which hosts send a reply

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wxPython & Fedora Core 4

2005-07-22 Thread linuxfreak
Yup rebuilt the rpms and it worked

Thanks a lot guys



Sybren Stuvel wrote:
> Christophe Lambin enlightened us with:
> > However, since your wxPython package wasn't built for FC4, you may
> > run into other problems.
>
> That should be solved by recompiling the wxPython RPMs.
>
> Sybren
> --
> The problem with the world is stupidity. Not saying there should be a
> capital punishment for stupidity, but why don't we just take the
> safety labels off of everything and let the problem solve itself?
>  Frank Zappa

-- 
http://mail.python.org/mailman/listinfo/python-list


SPE Ide Crash

2005-07-23 Thread linuxfreak
Hi Stani,

Downloaded your latest SPE editor 0.7.4.m . I'm running wxPython 2.6.1
on a Fedora Core 4 machine. The IDE is great but guess what it crashes
without warning. Was typing some code and boom the whole thing
disappeared without a trace. Thought should let you know

All you guys using this IDE has it ever crashed on you like this???

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Newer than a Newbe

2005-08-01 Thread linuxfreak
Look at Karrigell. Its a web framework for Python

http://karrigell.sourceforge.net

-- 
http://mail.python.org/mailman/listinfo/python-list


Python and curses

2005-12-16 Thread linuxfreak
Was wanting to write a text based application in python seems
curses module is the way to go... anyone knows of any good tutorials
apart from the one written by esr

-- 
http://mail.python.org/mailman/listinfo/python-list


Python IDE

2005-12-16 Thread linuxfreak
Which is a better python IDE SPE or WingIDE in terms of features

-- 
http://mail.python.org/mailman/listinfo/python-list


wxPython installation woes on OpenSUSE

2006-01-07 Thread linuxfreak
Hi all,

I downloaded the wxpython2.6 tar ball and tried building an rpm from it
in
an opensuse 10 computer. The command i used was

rpmbuild -tb 

The build worked fine and i found an 3 rpms in
/usr/src/packages/RPMS/i586

Then proceeded to install the which went without any hiccups... but
when i
import the wx package like so

>>> import wx

i get the following error... Cant figure out whats happening... Any
help
would be appreciated


Traceback (most recent call last):
  File "", line 1, in ?
  File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py",
line 42, in ?
from wx._core import *
  File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
line 4, in ?
import _core_
ImportError:
/usr/lib/wxPython-2.6.1.0-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:
undefined symbol: pango_x_get_context

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: download full sites?

2006-01-07 Thread linuxfreak
Try curl...its pretty cool.. and also wget...

-- 
http://mail.python.org/mailman/listinfo/python-list


Libgmail

2006-11-28 Thread linuxfreak
hi guys,

just starting out on python and libgmail... any documentation for
libgmail outthere... basically what i want to do is develop an
application to use gmail like and ftp server... should be able to
upload files and download them as well 

thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Libgmail

2006-11-28 Thread linuxfreak
Funny enough I find the same "Google" in my browser too. and if my
memory serves me correct I did the same search which you allude to. It
is only after series of exhaustive searches rummaging through websites
with incomplete (or non existent ) docs  that i posed the question
here :) thanks for the suggestion anyway


Jussi Salmela wrote:
> linuxfreak wrote:
> > hi guys,
> >
> > just starting out on python and libgmail... any documentation for
> > libgmail outthere... basically what i want to do is develop an
> > application to use gmail like and ftp server... should be able to
> > upload files and download them as well
> >
> > thanks
> >
>
> My browser has this amazing thing called Google installed. It's a kind
> of search facility with which I can search through Internet to find
> information.
>
> By searching for libgmail it gives me about 158000 places to read
> through but if I were you I'd start at the top which is
>   libgmail.sourceforge.net
> 
> HTH,
> Jussi

-- 
http://mail.python.org/mailman/listinfo/python-list