On Sat, May 28, 2011 at 5:55 AM, Greg Ewing greg.ew...@canterbury.ac.nzwrote:
Can anyone think of an efficient way to convert a string
full of RGBA image data to BGRA, using only what's available
in the standard library?
I'm trying to add a function to PyGUI for creating an Image
object
On 21/06/2011 16:13, M Saunders TAS wrote:
I'm trying to use python and the fantastic WMI module to manage
Hyper-V virtual machine resources and am having problems trying to
modify properties of an instance to pass back via WMI.
The following code in powershell is what I need to emulate in
On 21/06/2011 16:13, M Saunders TAS wrote:
Hi,
I'm trying to use python and the fantastic WMI module to manage Hyper-V
virtual machine resources and am having problems trying to modify properties
of an instance to pass back via WMI.
The following code in powershell is what I need to
On 21/06/2011 17:06, Graham Bloice wrote:
In the Python call to AddVirtualSystemResources() you've reversed the
order of the parameters.
Aha. And to help out the OP, you can pass parameters by name as
well as by position. (As you have done in the previous method
call).
TJG
[... snip horrendous Powershell stuff ...]
I never can understand why people like Powershell syntax so much grin
Indeed, it is syntactically horrendous. I wrote that after I hit problem in
Python to test the concept, honest...
I'm not going to be much help here, I'm afraid: I don't have
geoff wrote:
Greg, I had to solve this problem in another application and ended up
using the array module and the with the slice syntax.
import array
input = rgbaRGBA1234
ba = array.array('c', input)
ba[0::4], ba[2::4] = ba[2::4], ba[0::4]
Yep, I was thinking the same thing myself. I'll