DirectX Screenshot with python possible?

2012-06-20 Thread Sverre
I'm in need for a function that is able to make a screenshot from a directx 
full screen. PIL is only able to take a snapshot from the desktop, but not from 
any directx screen. 

Has someone a tip for an existing module?

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


Are there any instrumentation widgets for wxpython or tkinter?

2012-05-14 Thread Sverre
I searched for widgets used for PLC automation or lab instrumentation
like gauges, led's etc. in the net, but didn't found anything because
of those massive link spam sites. In the case there isn't any
solution, with which toolkit would it be easiest to build gauges?
-- 
http://mail.python.org/mailman/listinfo/python-list


Problem with inheritance

2011-10-21 Thread Sverre
I have to classes a  and b


class a(object):
def __init__(self,x):
self.x = x
self.build()

def build(self):
return

class b(a):
def __init__(self,x):
a.__init__(self,x)
self.y = 0  # ???

def build(self):
# do something
self.y += 2*self.x

 t = b(1)

The line marked with "???" will no be executed and I don't know the
reason. This example is working as intended, but not not the code I'm
working on. I'm using Eclipse. I don't know how to debug this
problem.

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


Re: Problem with inheritance

2011-10-21 Thread Sverre
On Oct 21, 10:07 am, Sverre  wrote:
> I have to classes a  and b
>
> class a(object):
>     def __init__(self,x):
>         self.x = x
>         self.build()
>
>     def build(self):
>         return
>
> class b(a):
>     def __init__(self,x):
>         a.__init__(self,x)
>         self.y = 0  # ???
>
>     def build(self):
>         # do something
>         self.y += 2*self.x
>
>  t = b(1)
>
> The line marked with "???" will no be executed and I don't know the
> reason. This example is working as intended, but not not the code I'm
> working on. I'm using Eclipse. I don't know how to debug this
> problem.

I found the solution. I caused an exception in b.build that wasn't
reported by Eclipse properly.
-- 
http://mail.python.org/mailman/listinfo/python-list


Package problem

2009-05-18 Thread Sverre
I'm using Ubuntu and some of the packages in the repository are too
old. So I got the thought to remove nearly  all packages downloaded
from the repository and install them with easy_install. Is this a way
to go without greater problems?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PIL: problem to convert an image array to PIL format

2009-12-17 Thread Sverre
On 17 Des, 15:45, Peter Otten <__pete...@web.de> wrote:
>
> This has come up before, see
>
> http://mail.python.org/pipermail/python-list/2009-October/1221578.html
>

> Peter

Thank you!

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