Re: Grail not downloading

2006-07-25 Thread SuperHik
Dustan wrote:
> Does anybody know anything about Grail?  I've been  unable to get at
> it, and I've tried on both Windows and Macintosh machines.
> 
> http://grail.sourceforge.net/
> 

http://prdownloads.sourceforge.net/grail/grail-0.6.tgz?download
-- 
http://mail.python.org/mailman/listinfo/python-list


saving settings

2006-05-29 Thread SuperHik
Hi,

I was wondering how to make a single .exe file, say some kind od clock,
and be able to save some settings (alarm for example) into the same 
file? Basically make code rewrite it self...

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


Re: saving settings

2006-05-29 Thread SuperHik
aum wrote:
> On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote:
> 
>> Hi,
>>
>> I was wondering how to make a single .exe file, say some kind od clock,
>> and be able to save some settings (alarm for example) into the same 
>> file? Basically make code rewrite it self...
>>
>> thanks!
> 
> Yikes!!!
> 
> I'd strongly suggest you read the doco for ConfigParser, and load/save
> your config file to/from os.path.join(os.path.expanduser("~")).
> 
> Another option - save your stuff in the Windows Registry
> 

but if I copy this file on the other computer settings will be lost...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: saving settings

2006-05-29 Thread SuperHik
Diez B. Roggisch wrote:
> SuperHik wrote:
> 
>> aum wrote:
>>> On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote:
>>>
>>>> Hi,
>>>>
>>>> I was wondering how to make a single .exe file, say some kind od clock,
>>>> and be able to save some settings (alarm for example) into the same
>>>> file? Basically make code rewrite it self...
>>>>
>>>> thanks!
>>> Yikes!!!
>>>
>>> I'd strongly suggest you read the doco for ConfigParser, and load/save
>>> your config file to/from os.path.join(os.path.expanduser("~")).
>>>
>>> Another option - save your stuff in the Windows Registry
>>>
>> but if I copy this file on the other computer settings will be lost...
> 
> It _might_ come as a shock to you, but when you install e.g. Word on another
> computer, there aren't any documents coming with it. Especially not the
> ones you wrote on that other machine.
that doesn't shock me :p
anyway you're talking about instalation while I'm talkig about single 
standalone file.
Besides, if it was neccessary I bet MS would make that option (and it
wouldn't be a problem since installation is not done from a sinlge file 
but from the CD (should be CD-RW in that case) with lots of files and 
directories so they'd create just another directory on the installation 
CD, say \All Documents\ )
> 
> Seriously: Who is going to copy a executable around?
Obviously I am. :D
Do you know of any
> other program that behaves like that?
No, but for most programs I used I never bothered to check where did 
they put their settings.
That's just the thing, I'm not a professional programmer so I was 
wondering is it possible to do it, and if it is how much trouble would 
it be. If nothing I will just make a config file right next to the 
executable..
> 
> Diez
thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: omniorbpy: problems sending float values

2006-05-29 Thread SuperHik
Juergen wrote:
> hi,
> 
> I've got a problem sending floating point values to an corba server.
> With other datatyes like short or string it works fine.
> 
> 
> So having this idl file :
> 
> module Example{
>   interface User{
>   void setV( in float x );
>   };
>   interface Target{
>   void getV( out short x);
>   };
>   };
> 
> I just receive zero ( -2.58265845332e-05) by sending an float to
> another client with the above interface.
> the client :
> **
> import sys
> from omniORB import CORBA
> import _omnipy
> import Example, CosNaming
> 
> orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
> 
> 
> 
> ior = sys.argv[1]
> obj = orb.string_to_object(ior)
> 
> us = obj._narrow( Example.User )
> 
> if us is None:
>   print "blabla"
>   sys.exit(1)
> 
> us.setV( 5.0 )
> **
> 
> the server :
> **
> import sys
> from omniORB import CORBA, PortableServer
> import CosNaming, Example, Example__POA
> 
> class User_i( Example__POA.User ):
>   def setV( self, x ):
>   print x
>   print type(x)
>   y = float(x)
>   print y
>   print type(y)
> 
> 
> class Target_i( Example__POA.Target ):
>   def getV( self ):
>   return 5
> 
> orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
> poa = orb.resolve_initial_references("RootPOA")
> 
> 
> us = User_i()
> tg = Target_i()
> 
> uo = us._this()
> to = tg._this()
> print orb.object_to_string(uo)
> print
> print orb.object_to_string(to)
> 
> 
> poaManager = poa._get_the_POAManager()
> poaManager.activate()
> 
> orb.run()
> **
> 
> does anyone have an answer to that kind of problem?
> I mean, it just like sending short values, or strings.
> 
I never used omniorb and have no clue were's the problem,
but if you don't find a solution just convert float into a string
on one side and back on the other hehe =B)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: saving settings

2006-05-30 Thread SuperHik
Diez B. Roggisch wrote:
> Grant Edwards wrote:
> 
> 
>> Documents and settings aren't quite the same thing, but it's a
>> valid point.
>>
>>> Especially not the ones you wrote on that other machine.
>>>
>>> Seriously: Who is going to copy a executable around?
>> I do.  I copy putty.exe around all of the time.
> 
> I download it every time, and if I didn't, I'd be pretty annoyed if I'd copy
> it to a friends machine containing ALL MY KEYS embedded into it.
> 
>>> Do you know of any other program that behaves like that?
>> Back in the day, that used to be fairly common under
>> DOS/Windows.  Not that it's still not a really bad idea.
> 
> Back in the day self-modifying code was the craze too. And _some_ people
> even do it in python :) 
those crazy bastards! ;)
> 
> Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: shuffling elements of a list

2006-05-31 Thread SuperHik
greenflame wrote:
> Zhang Fan wrote:
>> On 30 May 2006 20:18:19 -0700, greenflame <[EMAIL PROTECTED]> wrote:
>>> Second of all, I would like to have
>>> other methods of shuffling, prefererably riffle shuffling and just
>>> plain randomly arranging the elements of the list.
>> The random module has a `shuffle' method.  It  "Shuffle the sequence x
>> in place".
>> It may be help for you
> 
> I am sorry but this does not help much. In my version of python (2.3)
> this method does not seem to exist. Also from the documentation, it
> seems that this method would give a random number.
> 
You should update your Python then ;)
It's a very nice method:

 >>> import random
 >>> random.seed()
 >>>
 >>> list = [1,21,23,4,5]
 >>> random.shuffle(list)
 >>> print list
[5, 4, 23, 1, 21]
-- 
http://mail.python.org/mailman/listinfo/python-list


wx: PyNoAppError

2006-05-31 Thread SuperHik
Hi!

Using XP SP2, PythonWin 2.4.3, any trying to use wx 2.6.3.2
When using wx, the first time I run a script it runs fine.
Second time, it rasises an error:

[Script]**
import wx
app = wx.App()
win = wx.Frame(None, title="Simple Editor")
win.Show()
app.MainLoop()

[Error]***
Traceback (most recent call last):
   File 
"C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", 
line 310, in RunScript
 exec codeObject in __main__.__dict__
   File "C:\Python24\mystuff\ool.pyw", line 3, in ?
 win = wx.Frame(None, title="Simple Editor")
   File "C:\Python24\Lib\site-packages\wx-2.6-msw-ansi\wx\_windows.py", 
line 493, in __init__
 newobj = _windows_.new_Frame(*args, **kwargs)
PyNoAppError: The wx.App object must be created first!
**

So this happens no matter what the script is.
And it always occurs on the first line a new widget is created.
This is not a problem with the script, because it does the same
thing on every script I copied from the internet. It must be a
wx bug, but has anyone fixed it?
I googled and only found this:

http://mail.python.org/pipermail/tutor/2005-September/041678.html
*Not helpful
http://www.dogmelon.com.au/nsforum/viewtopic.php?p=5032&sid=53d6cc27c33f96f405873e044425e64c#5032
*Says that runnig the script outside of IDLE fixes the problem.
That works for me too but if there is a way to run it from IDLE
that would be much easier.

Any experience on this?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wx: PyNoAppError

2006-05-31 Thread SuperHik
Scott David Daniels wrote:
> SuperHik wrote:
> 
> (1) A wxPython question.  Better to ask on the wxPython newsgroup
> (listed as comp.python.wxpython on gmane).
I'm aware it's a wxPython question but I wasn't aware
of the group you mentioned. Thank you!

> 
>> Using XP SP2, PythonWin 2.4.3, any trying to use wx 2.6.3.2
>> When using wx, the first time I run a script it runs fine.
>> Second time, it rasises an error: 
> Up here you should have mentioned you are doing this in IDLE, that is
> your problem.
> 
> Later in your message you say:
>> ... *Says that runnig the script outside of IDLE fixes the problem.
>> That works for me too but if there is a way to run it from IDLE
>> that would be much easier.
> 
> This is the inevitable result of running a pair of GUIs simultaneously:
> They both want control of the main program to run their idle loop, and
> only can win.
I wasn't running them simultaneously. I ended the first (and only) one
and then tried to start it again.
> 
> --Scott David Daniels
> [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ideas for programs?

2006-05-31 Thread SuperHik
I agree with Fred.
So here is a "problem" I had and wanted to solve.
I needed an Atomic clock (well, not the real one but the one
that connects to NTP server and gets the exact time) in a
window that stays always on top. While I was writing it I
included alarm, and a stopwatch.
Than I wrote a simple e-mail client. First plain text and
than included attachments, and even encryption.
Ofc I could have found millions of such aplications on the net,
but that's not the point, right? ;)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter: select multiple entries in Listbox widget?

2006-06-02 Thread SuperHik
Rob Williscroft wrote:
> Bernard Lebel wrote in news:mailman.6413.1149178158.27775.python-
> [EMAIL PROTECTED] in comp.lang.python:
> 
>> Hello,
>>
>> Is there an option or a way to allow the selection of multiple entries
>> in the Listbox widget? I could not find any, and would like to allow
>> the end user to select multiple entries.
>>
>>
> 
> When configuring use:
> 
>   selectmode = "multiple"
> 
> e.g.:
> 
> import Tkinter as tk
> 
> root = tk.Tk()
> 
> a = tk.Listbox( root, selectmode = "multiple" )
> for i in range(10):
>   a.insert( i, str(i) + " item" )
> 
> a.pack()
> root.mainloop()
> 
> I found the answer here:
> 
> http://www.python.org/doc/life-preserver/ClassListbox.html
> 
> Though I had to guess the `= "multiple"` part.
> 
> Rob.
cool.
never needed it so far but it's nice to know :D
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: after del list , when I use it again, prompt 'not defined'.how could i delete its element,but not itself?

2006-06-02 Thread SuperHik
[EMAIL PROTECTED] wrote:
> python wrote:
>> after del list , when I use it again, prompt 'not defined'.how could i
>> delete its element,but not itself?
> 
> This is a way:
 a = range(10)
 del a[:]
or simply
a = []
 a
> []

 a.append(20)
 a
> [20]
> 
> Bye,
> bearophile
> 
-- 
http://mail.python.org/mailman/listinfo/python-list


re beginner

2006-06-04 Thread SuperHik
hi all,

I'm trying to understand regex for the first time, and it would be very 
helpful to get an example. I have an old(er) script with the following 
task - takes a string I copy-pasted and wich always has the same format:

 >>> print stuff
Yellow hat  2   Blue shirt  1
White socks 4   Green pants 1
Blue bag4   Nice perfume3
Wrist watch 7   Mobile phone4
Wireless cord!  2   Building tools  3
One for the money   7   Two for the show4

 >>> stuff
'Yellow hat\t2\tBlue shirt\t1\nWhite socks\t4\tGreen pants\t1\nBlue 
bag\t4\tNice perfume\t3\nWrist watch\t7\tMobile phone\t4\nWireless 
cord!\t2\tBuilding tools\t3\nOne for the money\t7\tTwo for the show\t4'

I want to put items from stuff into a dict like this:
 >>> print mydict
{'Wireless cord!': 2, 'Green pants': 1, 'Blue shirt': 1, 'White socks': 
4, 'Mobile phone': 4, 'Two for the show': 4, 'One for the money': 7, 
'Blue bag': 4, 'Wrist watch': 7, 'Nice perfume': 3, 'Yellow hat': 2, 
'Building tools': 3}

Here's how I did it:
 >>> def putindict(items):
... items = items.replace('\n', '\t')
... items = items.split('\t')
... d = {}
... for x in xrange( len(items) ):
... if not items[x].isdigit(): d[items[x]] = int(items[x+1])
... return d
 >>>
 >>> mydict = putindict(stuff)


I was wondering is there a better way to do it using re module?
perheps even avoiding this for loop?

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


Re: re beginner

2006-06-05 Thread SuperHik
WOW!
Thanks for all the answers, even those not related to regular 
expressions tought me some stuff I wasn't aware of.
I appreciate it very much.

SuperHik wrote:
> hi all,
> 
> I'm trying to understand regex for the first time, and it would be very 
> helpful to get an example. I have an old(er) script with the following 
> task - takes a string I copy-pasted and wich always has the same format:
> 
>  >>> print stuff
> Yellow hat2Blue shirt1
> White socks4Green pants1
> Blue bag4Nice perfume3
> Wrist watch7Mobile phone4
> Wireless cord!2Building tools3
> One for the money7Two for the show4
> 
>  >>> stuff
> 'Yellow hat\t2\tBlue shirt\t1\nWhite socks\t4\tGreen pants\t1\nBlue 
> bag\t4\tNice perfume\t3\nWrist watch\t7\tMobile phone\t4\nWireless 
> cord!\t2\tBuilding tools\t3\nOne for the money\t7\tTwo for the show\t4'
> 
> I want to put items from stuff into a dict like this:
>  >>> print mydict
> {'Wireless cord!': 2, 'Green pants': 1, 'Blue shirt': 1, 'White socks': 
> 4, 'Mobile phone': 4, 'Two for the show': 4, 'One for the money': 7, 
> 'Blue bag': 4, 'Wrist watch': 7, 'Nice perfume': 3, 'Yellow hat': 2, 
> 'Building tools': 3}
> 
> Here's how I did it:
>  >>> def putindict(items):
> ... items = items.replace('\n', '\t')
> ... items = items.split('\t')
> ... d = {}
> ... for x in xrange( len(items) ):
> ... if not items[x].isdigit(): d[items[x]] = int(items[x+1])
> ... return d
>  >>>
>  >>> mydict = putindict(stuff)
> 
> 
> I was wondering is there a better way to do it using re module?
> perheps even avoiding this for loop?
> 
> thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: newbie: python application on a web page

2006-06-07 Thread SuperHik
Max wrote:
> puzz wrote:
>> sorry about the missunderstanding...
>>
>> but my question is "how" and not "where" to put it online
>> and that's where the "newbie" comes from
>>
>> P M
> 
> If you just want to make it available for download, that's easy. If you 
> want to make it open source, you could upload it to 
> planet-source-code.com (I used to put a lot there; don't know if they 
> have a python section) or SourceForge depending on your "market".
> 
> But what I think you want is a web interface (where a user goes to your 
> site and uses it in the browser window). This is more tricky, but you're 
> almost certainly going to have to abandon Tkinter. You could try doing 
> an applet in Jython (which compiles Python to Java bytecode so you could 
> in theory do a Java-style applet).
> 
> The alternative is to have the curve drawn server-side, so you would 
> have an HTML form on the page, and on clicking a button, load the graph 
> (into an "iframe" or something perhaps [I have a feeling iframes have 
> been deprecated - check first]). In which case you'd want to look up 
> CGI, AJAX, etc.
> 
> --Max

Could it be done with SVG XML?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Most elegant way to generate 3-char sequence

2006-06-09 Thread SuperHik
and the winner is... :D
David Isaac wrote:
> alpha = string.lowercase
> x=(a+b+c for a in alpha for b in alpha for c in alpha)


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


Re: Most elegant way to generate 3-char sequence

2006-06-10 Thread SuperHik
James Stroud wrote:
> SuperHik wrote:
>> and the winner is... :D
>> David Isaac wrote:
>>
>>> alpha = string.lowercase
>>> x=(a+b+c for a in alpha for b in alpha for c in alpha)
>>
>>
>>
> 
> Not necessarily vying for winner, but David's solution is highly 
> specific as it doesn't do so well for something like
> 
> aaa
> aab
> .
> .
> .
> zzy
> zzz

Right. But that wasn't the question :p
> 
> 
> James
> 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: code folding, a unique problem to python?

2006-06-15 Thread SuperHik
BartlebyScrivener wrote:
> Komodo code folds Python, Perl, PHP . . .

also the free ActivePython's Pythonwin IDE
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Popen3 on Windows

2006-06-17 Thread SuperHik
Dennis Lee Bieber wrote:
> On Sat, 17 Jun 2006 11:46:29 -0600, Jeffrey Barish
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
> 
>> I start.  Is there a way to do this on Windows?
> 
>   There is no safe, easy, way to reliably kill a program on Windows...
> 
> Hmmm, there's one I hadn't know about...
>   http://www.tech-recipes.com/windows_tips446.html
> Ah, not supplied in WinXP Home (my desktop is Pro)
> 
>   Seems besides taskkill, there is also a tskill with different
> arguments...
> 
>   The M$ response
>   http://support.microsoft.com/default.aspx?scid=KB;en-us;178893&;
> 
> 
>   Granted, these don't explain how to get the PID in the first place
> from Python.
> 
>   If possible, try using the subprocess module... It seems to have a
> PID attribute.
> 
from http://docs.python.org/dev/lib/module-subprocess.html
"""
16.1 subprocess -- Subprocess management

New in version 2.4.

The subprocess module allows you to spawn new processes, connect to 
their input/output/error pipes, and obtain their return codes. This 
module *intends to replace* several other, older modules and functions, 
such as:

os.system
os.spawn*
os.popen*
popen2.*
commands.*
"""
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Standard Yes / No Windows Dialog box creation

2006-06-17 Thread SuperHik
Claudio Grondi wrote:
> [EMAIL PROTECTED] wrote:
>> I found a way to create "Open File" or "Open Folder" windows dialog
>> boxes, but not to create an easier Yes / No dialog box...
>> Maybe someone has a solution for this?

I've never seen "easier" way to do it, but my solution for you if you
want to create a GUI application without learning any GUI programming
would be to consider Glade, wxGlade and such...
>>
> Do it just the same way as you did it with the "Open File" or "Open 
> Folder" windows dialog. What is your problem with it?
> 
I think what he means by "create" is somethink like 
win32ui.CreateFileDialog() because of the "easier" part.

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


2Qs

2006-06-24 Thread SuperHik
1st question:

If a make an exe with i.e. py2exe, can I get any kind of error/bug 
report from the exe file saved into a file error.log and how?

2nd question:

is there a better way to do this:


def tritup(x,y,z):
#here is a while loop giving 3 results, i.e. r1,r2,r3
return r1,r2,r3

#I want to put sum of r1,r2,r3 as a condition in if statement
#so I created a function to do this, but I can't escape a feeling
#there is a more elegant solution, especially in python ;=)

def summm(a,b,c):
return a+b+c

if x>10 and y>10 and z>10 and summ(tritup(x,y,z)): print "OK"
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Beginner Programmer Question

2006-06-26 Thread SuperHik
[EMAIL PROTECTED] wrote:
> I am doing alot of reading and trying to teach myself how to program.
> I can not figure out how to make "Write a program that continually
> reads in numbers from the user and adds them together until the sum
> reaches 100." this work. If someone could show me the correct code so i
> can learn from that it would be much appreciated. Thanks
> 

summ = 0
while summ < 100:
 usr = input('Enter a number:')
 summ += usr   #that's same as>>> summ = summ + usr
 print summ

print "now continue with whatever you want..."
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Beginner Programmer Question

2006-06-26 Thread SuperHik
Rune Strand wrote:
>> I am doing alot of reading, and the problem didnt come with an answer.
>> I dont understand how to get it to continually input numbers and add
>> all those together
> 
> Use while, raw_input, sys.argv[1] and int() and break the loop when the
> sum is above 100.
> 
> ;-)
> 
I don't think you understood his problem. He is trying to learn how to 
*program*, not just learn Python ;)
-- 
http://mail.python.org/mailman/listinfo/python-list


poplib Q

2006-07-06 Thread SuperHik
Hi!

I want to connect to gmail but...
It requires SSL so I worte:

 >>> import poplib
 >>> server = poplib.POP3_SSL('pop.gmail.com',995)
Traceback (most recent call last):
   File "", line 1, in ?
   File "C:\Python24\lib\poplib.py", line 359, in __init__
 self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
 >>>

what's with that?!
I found an old post to this group, and it connected the same way, only 
it worked.
(I use PythonWin 2.4.3 on WinXP)

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


Re: poplib Q

2006-07-06 Thread SuperHik
Paul McGuire wrote:
> "SuperHik" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi!
>>
>> I want to connect to gmail but...
>> It requires SSL so I worte:
>>
>>  >>> import poplib
>>  >>> server = poplib.POP3_SSL('pop.gmail.com',995)
>> Traceback (most recent call last):
>>File "", line 1, in ?
>>File "C:\Python24\lib\poplib.py", line 359, in __init__
>>  self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
>> AttributeError: 'module' object has no attribute 'ssl'
>>  >>>
>>
>> what's with that?!
>> I found an old post to this group, and it connected the same way, only
>> it worked.
>> (I use PythonWin 2.4.3 on WinXP)
>>
>> tia!
> 
> See if you have a socket.py file in your PYTHONPATH or local directory.
> 
> -- Paul

I did ofc, but I noticed something strange...
*my* socket module really doesn't have SSL object,
even tho it's listed in the documentation...
(not the online docs, but docs that came with my Python version)
ffs how can that be!

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


Re: poplib Q

2006-07-07 Thread SuperHik
Neil Hodgson wrote:
> SuperHik:
> 
>> I did ofc, but I noticed something strange...
>> *my* socket module really doesn't have SSL object,
>> even tho it's listed in the documentation...
>> (not the online docs, but docs that came with my Python version)
>> ffs how can that be!
> 
>You are probably using ActiveState's distribution which doesn't 
> include SSL due to encryption regulations. The python.org distribution 
> does include SSL and you may be able to copy _ssl.pyd into the 
> ActiveState installation.
> 
>Neil

thank you!
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: rollover effect

2006-08-26 Thread SuperHik
groves wrote:
> Simon Forman wrote:
>> groves wrote:
>>> Sorry, as I am new to python so couldn't understand what yu were
>>> asking.
>>> Now the problem is that i annot use pmw in my project..is thre anyother
>>> alternative by which I can have a rollover mouse effect on the canvas.
>>> thanks
>> Not a problem.  Although "IDE" and "GUI" are terms that are not
>> specific to python.  But you still haven't answered my question?  Are
>> you using Tkinter?  wxWidgets? Gtk bindings?
>>
>> Assuming that you're using Tkinter, what prevents you from using Pmw?
>>
>> Peace,
>> ~Simon
> 
> Yes I am using Tkinter...
> the thing is  I I m new to Tkhave not used PMW bfore..Nd inter...
> So just though If there is any alternative,,,as i don't have much time
> 
PMW uses Tkinter too, so there is nothing "new",
it just has more "complicated" widgets already
written for you using Tkinter...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python

2006-08-26 Thread SuperHik
JAG CHAN wrote:
> [EMAIL PROTECTED] wrote in
> news:[EMAIL PROTECTED]: 
> 
>> JAG CHAN:
>>> As I had written earlier, I am trying to learn Python.
>>> I chose IDLE as an editor to learn Python.
>>> Now I find that it is an online editor.
>>> It is not possible for me to be always on online while learning.
>>> Kindly suggest me a suitable editor (for Windows XP) which does not
>>> require me to be on online.
>> Maybe your firewall tells you that IDLE asks for access to the net,
>> but it's not an online sofware. You can use a different editor, like
>> SPE, or if you want to start with something simpler you can try
>> ActivePython, or probably it's even better a normal and very fast txt
>> editor with a python grammar for colorization, with a macro added to
>> run the script being edited.
>>
>> Bye,
>> bearophile
>>
> 
> Thanks for your response.
> You are right.
> Whenever I try to open IDLE, my zone firewall tells me pythonw.exe is 
> trying to access the trusted zone.
> Whenever I try to open new IDLE window I get the following message:
> "IDLE's subprocess didn't make connection.Either IDLE can't start a 
> subprocess or personal firewall software is blocking the connection."
> I will be grateful if you kindly suggest a way out, then, I won't have to 
> install another editor.
> Regards.

Python uses what windows call "internal loopback device" wich is 
monitored by the firewall. So yes, it's a firewall thing, not the editor 
and you would get the same message using any editor...
I suggest AcitvePython - easy, free, and comes with all the windows 
specific modules and extensions...
-- 
http://mail.python.org/mailman/listinfo/python-list