If anyone would like to see a substantial application built with
PyGUI, you might like to take a look at my latest game, currently
posted on the Pyggy Awards site:
http://pyggy.pyweek.org/e/SimChip/
Any feedback you care to provide on the game would be welcome
as well. :-)
--
Greg
_
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 g
> [... snip horrendous Powershell stuff ...]
>
> I never can understand why people like Powershell syntax so much
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 acce
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
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 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 pytho
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 emulate in python:
$vmms = gwmi -namespace root\virtu
On Sat, May 28, 2011 at 5:55 AM, Greg Ewing wrote:
> 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 from arbitrary data. The