Re: Threads Dying?

2007-06-28 Thread felix seltzer

are you using pygtk as well?
how are you using your threads, (just out of curiosity into the issue)

-felix

On 6/28/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:


En Thu, 28 Jun 2007 15:12:53 -0300, Robert Rawlins - Think Blue
<[EMAIL PROTECTED]> escribió:

> I've got an application that seems to be a little bit unstable and
> freezes
> quite a bit, and I'm suspecting it's something in one of my threads
> that's
> causing the problem, when does a thread die?

After the run() method finishes, either normally or because an unhandled
exception happened.

> And how can I be sure that its
> dyeing when its mean to be?

I'm not sure what you are asking - you can check periodically inside run()
for some condition (an Event object, a special object placed on a Queue,
even a global variable in the simplest case) and exit when the condition
is met.

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

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

Re: Help Needed in WxPython

2007-06-28 Thread felix seltzer

If you use pygtk, the notebook object could do that in a few lines of
code
but im not sure about wxPython.
note that if your using *nix of some sort, gtk should work fine, but under
windows some people report issues.
-felix

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


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

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

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-06-29 Thread felix seltzer

does this project include support for pygtk type GUI's?

On 6/29/07, Mark Dufour <[EMAIL PROTECTED]> wrote:


Hi all,

I have just released version 0.0.22 of Shed Skin, an experimental
Python-to-C++ compiler. Among other things, it has the exciting new
feature of being able to generate (simple, for now) extension modules,
so it's much easier to compile parts of a program and use them (by
just importing them). Here's the complete changelog:

-support for generating simple extension modules (linux/windows; see
README)
-dos text format fix (long overdue)
-improved detection of dynamic types (avoid hanging on them)
-improved overloading (__nonzero__, __int__, __abs__ etc.)
-add str(ing).{capitalize, capwords, swapcase, center, ato*)
-fix string.maketrans
-several other minor bug fixes

For more details about Shed Skin and a collection of 27 programs, at a
total of about 7,000 lines, that it can compile (resulting in an
average speedup of about 39 times over CPython and 11 times over Psyco
on my computer), please visit the homepage at:

http://mark.dufour.googlepages.com

I could really use some help in pushing Shed Skin forward. Please try
the latest release and send in bug reports, or join the project via
the homepage.


Thanks,
Mark Dufour.


On 3/31/07, Mark Dufour <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an
> optimizing Python-to-C++ compiler. Shed Skin allows for translation of
> pure (unmodified), implicitly statically typed Python programs into
> optimized C++, and hence, highly optimized machine language. Besides
> many bug fixes and optimizations, these releases add the following
> changes:
>
> -support for 'bisect', 'collections.deque' and 'string.maketrans'
> -improved 'copy' support
> -support for 'try, else' construction
> -improved error checking for dynamic types
> -printing of floats is now much closer to CPython
>
> For more details about Shed Skin and a collection of 27 programs, at a
> total of about 7,000 lines, that it can compile (resulting in an
> average speedup of about 39 times over CPython and 11 times over Psyco
> on my computer), please visit the homepage at:
>
> http://mark.dufour.googlepages.com
>
> I could really use more help it pushing Shed Skin further. Simple ways
> to help out, but that can save me lots of time, are to find smallish
> code fragments that Shed Skin currently breaks on, and to help
> improve/optimize the (C++) builtins and core libraries. I'm also
> hoping someone else would like to deal with integration with CPython
> (so Shed Skin can generate extension modules, and it becomes easier to
> use 'arbitrary' external CPython modules such as 're' and 'pygame'.)
> Finally, there may be some interesting Master's thesis subjects in
> improving Shed Skin, such as transforming heap allocation into stack-
> and static preallocation, where possible, to bring performance even
> closer to manual C++. Please let me know if you are interested in
> helping out, and/or join the Shed Skin mailing list.
>
>
> Thanks!
> Mark Dufour.
> --
> "One of my most productive days was throwing away 1000 lines of code"
> - Ken Thompson
>

Mark Dufour.
--
"One of my most productive days was throwing away 1000 lines of code"
- Ken Thompson
--
http://mail.python.org/mailman/listinfo/python-list

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

Re: Help needed in PyGTk

2007-06-29 Thread felix seltzer

try the pygtk mailing list,
"pygtk" <[EMAIL PROTECTED]>
they will probobly be able to help you more.

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


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

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

Re: HTML Render Support in PyGTK

2007-06-29 Thread felix seltzer

http://directory.fsf.org/webauth/htmlpreproc/gtkhtml.html

might help. just like thomas though... more info on what your doing/have
done would help us help you

On 6/29/07, Thomas Jollans <[EMAIL PROTECTED]> wrote:


There was no need to re-ask so soon.

On Friday 29 June 2007, senthil arasu wrote:
> Hi,
> I am trying to render HTML in PyGTK widget but iam not getting the
expected
   ^^
What have you tried so far ?
> result.
> I would like to know whether PyGTK supports HTML rendering feature or
not.

I believe GTK+2 has an HTML renderer, I don't know whether it's included
in
PyGTK by default etc.

--
  Regards,   Thomas Jollans
GPG key: 0xF421434B may be found on various keyservers, eg pgp.mit.edu
Hacker key :
v4sw6+8Yhw4/5ln3pr5Ock2ma2u7Lw2Nl7Di2e2t3/4TMb6HOPTen5/6g5OPa1XsMr9p-7/-6

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


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

good matlab interface

2007-06-29 Thread felix seltzer

Does any one know of a good matlab interface?
I would just use scipy or numpy, but i also need to use
the matlab neural network functions.  I have tried PyMat, but am having
a hard time getting it to install correctly.

For that mater, a good neural net module for python would
work just as well as a good matlab interface.

Any suggestions?

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

Re: good matlab interface

2007-07-02 Thread felix seltzer

my problems where more with scipy, which i needed for pymat.
scipy gives two import errors (but still imports), and then pymat
cant find the libraries that scipy provides.

ohwell...
i think i can just modify it to work with numpy untill
i can sort out the errors.

thanks,
-felix


On 7/2/07, Brian Blais <[EMAIL PROTECTED]> wrote:


On Jun 30, 2007, at 2:31 AM, felix seltzer wrote:

> Does any one know of a good matlab interface?
> I would just use scipy or numpy, but i also need to use
> the matlab neural network functions.  I have tried PyMat, but am
> having
> a hard time getting it to install correctly.
>

What problems are you having installing?  I had one problem with the
terrible matlab license server, which I had to solve by making site-
packages world writable, installing pymat as a user, and then
removing the world writable flag.  Root just didn't have access to
matlab on my machine.  :P



bb


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