Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Senthil Kumaran
On Mon, Jan 17, 2011 at 2:03 PM, Mark Summerfield  wrote:
> Hi Georg,
>
> I can't be sure it is a bug, but there is a definite difference of
> behavior between 3.0/3.1 and 3.2rc1.
>
> I can do the relative import with Python 3.0 and 3.1 but not with
> 3.2rc1:

Are you sure that the package that you are trying to import is the
PYTHONPATH of your system's Python 3.0 and Python 3.1
and Not in RC1? Looks to me a PYTHONPATH problem than a problem with rc1.

- I tried to recreate the directory structure that you mentioned and
tried from Graphics.Vector import *
It failed with ImportError on python3, 3.1 and rc.

- Just to test the relative imports, I created a directory structure
as mentioned here: http://www.python.org/dev/peps/pep-0328/
and tried to test the relative import for usecase :- from ..moduleA
import foo and works fine in rc1.

- I also find that your use case (from ..Graphics import XPM in
Graphics/Vector/Svg.py) is not one of the listed ones in PEP-0328.


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


Re: problems while using pexpect: pexcept.TIMEOUT always

2009-06-08 Thread Senthil Kumaran
On Jun 8, 10:19 pm, "R. David Murray"  wrote:
> I would suggest using the 'setlog' method of child to get
> more debugging information from pexpect.  I've found that the
> best way to diagnose the source of a timeout.
>

setlog method seems to be deprecated and 'not allowed' too as the help
says.
But, I just figured out with help from another forum (bangpypers) that
I was not closing the ssh session.
so doing child.sendline('logout') and then doing child.read() in my
script worked out.

Thanks,
Senthil
-- 
http://mail.python.org/mailman/listinfo/python-list


Catching Python exceptions in C

2008-12-08 Thread Senthil Kumar
Hi Pythoneers !
Can somebody give a quick solution?
I am trying to raise exceptions in python and trying to handle it in
C.
I am able to raise exceptions successfully. However could not catch
those in C.
I am using the following function to run the python from C:
Pyrun_SimpleString().
After the exception is raised, I am checking PyErr_Occurred(). It
always returns NULL, and I cannot catch the exception.
Pls help me a way out.

Thanx in advance !
--
http://mail.python.org/mailman/listinfo/python-list


HTML Render Support in PyGTK

2007-06-29 Thread senthil arasu

Hi,
I am trying to render HTML in PyGTK widget but iam not getting the expected
result.
I would like to know whether PyGTK supports HTML rendering feature or not.

Please help me to solve this issue.

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

Help needed in PyGTk

2007-06-29 Thread senthil arasu

Hi,
I am trying to render HTML in PyGTK widget but iam not getting the expected
result.
I would like to know whether PyGTK supports HTML rendering feature or not.

Please help me to solve this issue.

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

Help Needed in WxPython

2007-06-28 Thread senthil arasu

Hi,
Currently Iam integrating GUI Framework in Python.
As per design design,I need to use tab buttons to launch different HTML
pages in same frame(without launching seperate window ). I have already
tried with webbrowser class & WxPython GUI kit. Iam unable to get the
expected result.

I am wanted to be clear..!whether python supports my design or i need to go
for some other option

I need somebody to help me.

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

HTML Page Rendering Support in WxPython Frame

2007-06-28 Thread senthil arasu

Hi,
Currently Iam integrating GUI Framework in Python.
As per design design,I need to use tab buttons to launch different HTML
pages in same frame(without launching seperate window ). I have already
tried with webbrowser class & WxPython GUI kit. Iam unable to get the
expected result.

I am wanted to be clear..!whether python supports my design or i need to go
for some other option

I need somebody to help me.

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

Re: Help needed for Pmw and WxPython Interface

2007-06-28 Thread senthil arasu

I

On 6/28/07, senthil arasu <[EMAIL PROTECTED]> wrote:


Hi,
Iam creating tab pages using pmw
  nb = Pmw.NoteBook(master)
p1 = nb.add('Page 1')
p2 = nb.add('Page 2')
p3 = nb.add('Page 3')

created button control for every tabe page to open HTML

Button(p1, fg='blue',command=f.call,command=call1).pack(pady=40)
 Button(p2, fg='blue',command=f.call,command=call2).pack(pady=40)
Button(p3, fg='blue',command=f.call,command=call2).pack

since HTML rendering supported in WxPython library .I have defined call
backs with WxPython HTML routines

eg.
def call1:()
{

html.LoadPage("http://wxwidgets.org/manuals/2.5.4/wx_wxbutton.html";)

 }

Iam facing problem in integration of both the libraries.

Is it possible to integrate the functionalities of libraries WxPython and
pmw.?

please help me.



thanks







iS IT



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

Help needed for Pmw and WxPython Interface

2007-06-28 Thread senthil arasu

Hi,
Iam creating tab pages using pmw
 nb = Pmw.NoteBook(master)
   p1 = nb.add('Page 1')
   p2 = nb.add('Page 2')
   p3 = nb.add('Page 3')

created button control for every tabe page to open HTML

Button(p1, fg='blue',command=f.call,command=call1).pack(pady=40)
Button(p2, fg='blue',command=f.call,command=call2).pack(pady=40)
Button(p3, fg='blue',command=f.call,command=call2).pack

since HTML rendering supported in WxPython library .I have defined call
backs with WxPython HTML routines

eg.
def call1:()
{

   html.LoadPage("http://wxwidgets.org/manuals/2.5.4/wx_wxbutton.html";)

}

Iam facing problem in integration of both the libraries.

Is it possible to integrate the functionalities of libraries WxPython and
pmw.?

please help me.



thanks







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

Tabbed windows Support in Python

2007-06-27 Thread senthil arasu

Hi,
Currently iam implementing GUI Framework for supporting Tabbed windows to
render  different HTML Pages.
A row of tabs  facilitated for navigation of pages.

Iam expecting some classes like "QTabWidget" whick provided by Qt Libarary.
After starting my implementation i came to know Tkinter not supports tabbed
windows

is there anybody to help me  how to proceed further.


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

How to destroy a Frame with condition

2007-06-26 Thread senthil arasu

Hi,
In my code logic I need to check the frame existence and then destroy a
frame.
I dont know how to code this  condition.
In Python tutorials what i reffered, "if "condition given only for
integers(like if x>0:)

I need some one to help me.

This is my condition

If  iframe==NULL//if frame not available
 iframe.destroy()

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

Help needed in Handling HTML file

2007-06-26 Thread senthil arasu

Hi,
Right now Iam handling HTML files using Python.
Is there any modules to support HTML parsing and rendering ?
or suggest me any other way to support HTML.

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

Help needed to solve this "NameError"

2007-06-24 Thread senthil arasu

Hi,
Iam new tp python programming.

Iam getting compiler error  when declaring frame instance as local variable.
please find the code


from Tkinter import *

class App:
   def __init__(self, master):
   *frame = Frame(master)
*  frame.pack()
   self.button = Button(frame, text="QUIT", fg="red", command=frame.quit)
self.button.pack(side=LEFT)
   self.hi_there = Button(frame, text="Hello", command=self.say_hi)
   self.hi_there.pack(side=LEFT)

def say_hi(self):
   print "hi there, everyone!"
root = Tk()
app = App(root)
root.mainloop()

once compiling iam getting the error

Traceback (most recent call last):
 File "C:\chk.py", line 20, in 
**frame.pack()
*NameError: name 'frame' is not defined
*

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

python25_d.lib

2007-06-20 Thread senthil arasu

Hi ,
After integrating python 2.5 in visual studio.
Iam getting the  linked error "cannot open file python25_d.lib"
Help me to solve this issue.

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