I'm creating a COM server in Python that will have one
main class, with methods that create and return instances
of other classes.
I've found that I need to use win32com.server.util.wrap
and unwrap on these objects when they pass over a COM
connection. This doesn't seem very convenient, especiall
Thomas Heller wrote:
Does Python need a native, pure Python, Windows GUI toolkit, one that uses
win32 api calls directly to use native windows controls?
I believe so. One of the long-term goals for PyGUI is to
give it a native Windows backend. I share your dislike of
layers on layers.
Are the
Tim Roberts wrote:
Dahlstrom, Roger wrote:
My opinion is that determining file type by extension (arbitrary at that)
>> is a bad thing to begin with.
This is veering a bit off-topic for this mailing list, but I'd be
curious to hear what alternatives you would suggest.
The way classic MacOS
Tim Roberts wrote:
It's kind of loony for an API to use a
64-bit integer as an error number, but that's what they're doing.
This is Windows, remember. There are large numbers
of things that can go wrong.
--
Greg
___
python-win32 mailing list
python-w
Has anyone successfully used the PyCWnd.OnCtlColor
virtual function to change the appearance of a
control?
The program below tries to use it to set the colour
of the text in a PyCButton. My OnCtlColor method gets
called, but it doesn't have any effect on the appearance
of the button.
Also, if I
Roger Upole wrote:
OnCtlColor is expected to return a GDI handle rather than a full
MFC object.
Ah, okay. It does say so, now that I come to look at
the docs carefully enough. It works fine now.
Thanks,
Greg
___
python-win32 mailing list
python-win3
Well, it *almost* works now... it's okay for all the
button styles except BS_PUSHBUTTON.
My OnCtlColor is still getting called, but the
pushbutton seems to ignore the results. All the other
button styles are okay.
Am I still doing something wrong, or is this a known
limitation of pushbuttons?
#
Mike Driscoll wrote:
I'm probably being naive, but why don't you just use one of Python
excellent GUI toolkits?
I'm implementing my own cross-platform toolkit, because
I don't like any of the existing ones. See
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
--
Greg
_
Vernon Cole wrote:
So, Greg, can we anticipate a python_gui flavor for Windows in native mode?
Yes, it looks like there's a reasonable chance of that
happening fairly soon.
There are actually two possible ways it could go. I
have a partial implementation contributed by one of
my users based o
Given a PyAssocObject, is there some way of finding
the object that was attached to it with AttachObject?
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Mark Hammond wrote:
Apparently not from Python. It would be easy to add,
If you do happen to add this, another thing you might
want to investigate is why PyCCmdUI isn't automatically
doing this when you read the m_pMenu property, as seems
to happen in most other places if you call a method
th
Mark Hammond wrote:
Hrm - m_pMenu (and m_pSubMenu) is *supposed* to return a PyCMenu object
- what are you seeing?
They're returning a PyCMenu, but not the object that
I have attached to the PyCMenu.
This seems to happen automatically in some other
places, e.g. ui.GetFocus(). If m_pMenu behav
I'm having trouble understanding how PreTranslateMessage
is supposed to work.
According to M$:
Return value: Nonzero if the message was translated
and should not be dispatched; 0 if the message was
not translated and should be dispatched.
and according to the pywin32 docs:
The result s
The following program creates a FrameWnd with an
Edit control in it.
If I select some text in the control, then switch
to another window and back again, the Edit control
has lost the keyboard focus.
Normal Windows applications don't behave that way.
What do I have to do to get my controls to sta
Is there any way of creating a ScrollView without needing
a Document?
I just want a scrollable user-drawable area, but CreateView
insists that I supply a Document. What's more, the only
way to create a Document seems to be to use a DocTemplate,
and the only way to get one of those is to use a res
Mark Hammond wrote:
No not only can I no longer answer your question, I'm quite confident I
never could :(
Alternatively, is there a way of getting a valid DocTemplate
without having to put a resource in the executable? Some
kind of in-memory resource creation or something?
--
Greg
__
Well, I think I've found a workaround. The following
hack seems to create something looking enough like
a PyCDocument to keep it happy while creating a
PyCView:
dummy = win32ui.CreateRichEditView().GetDocument()
The result of this appears to be a PyCDocument that's
wrapping a null pointer. The
I'm having trouble getting notification messages from
a Slider control.
According to MS, a Slider is supposed to send WM_HSCROLL
messages to its parent window when the user changes it,
but this isn't happening.
I can get WM_HSCROLL messages from a normal scroll bar,
but either the Slider isn't s
Mark Hammond wrote:
Works for me. In sliderdemo.py, directly after the creation of the
control I added:
self.HookMessage(self.OnSliderMove, win32con.WM_HSCROLL)
Okay, I've modified that demo similarly and it works
for me too. I can investigate further from there,
thanks.
--
Greg
I'm trying to use GDI+ (via ctypes) to draw text.
It works for some fonts but messes up with others.
Using Times, for example, it seems to be using the
glyphs for one character earlier in the code sequence,
so that "Times" comes out as "Shldr" -- except that it
uses the widths of the original char
Tim Roberts wrote:
Sadly, I see "Times Italic 48" in black-on-yellow.
Do you really have a font called "Times"?
I'm not sure, but I can use the name "Times" with
plain GDI and it works fine, so it seems to be able
to find something equivalent.
But I'll try using the exact name and see if it
Turns out I *sort* of have a font called Times... I've got
"Times Bold", "Times Italic" and "Times Bold Italic", but
no plain "Times"!
"Times New Roman" works fine, though, and it seems that the
same is true of all the other fonts for which there is a
full set of variations.
So it looks like I'l
I'm trying to create an OpenGL context for rendering
to an offscreen bitmap.
The attached program gets as far as trying to call
wglCreateContext, then fails with
WindowsError: [Errno 8] Not enough storage is available to
process this command.
Can anyone see what's going wrong here?
Thank
PyGUI 2.0 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Highlights of this release:
* Native Windows implementation, based on pywin32 and ctypes.
* Full set of Postscript-style path construction operators
available on all platforms.
* Mouse and keyboard events can
france...@promotux.it wrote:
error: package directory 'Gtk' does not exist
Smeg, there's a bug in the installer. I'll release
a fix soon. In the meantime, try replacing the
following line in setup.py:
packages.append("Gtk")
with
packages.append("GUI.Gtk")
I've also noticed another prob
PyGUI 2.0.1 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Fixes some problems in setup.py affecting installation
on Linux and Windows.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.
--
G
Christian K. wrote:
File "c:\pythonxy\python\lib\site-packages\GUI\Win32\__init__.py", line 2, in
raise ImportError("This should not be imported.")
ImportError: This should not be imported.
I'll be releasing a fix for this soon. In the meantime,
remove GUI/Win32/__init__.py.
--
Greg
_
PyGUI 2.0.2 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Fixes problem on Windows causing "This file should not
be imported" error.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be lightweight
and have a highly Pythonic API.
--
Gre
Christian K. wrote:
TypeError: 'pitch_and_family' is an invalid keyword argument for this
function
Looking at the source of pywin32, I can see why this
happens -- it really is expecting 'pitch and family'
with spaces (and it's abusing ParseTupleAndKeywords
to unpack a dict, which is why it's r
Christian K. wrote:
"c:\pythonxy\python\Lib\site-packages\GUI\Win32\ScrollableViews.py",
line 31, in __init__
GScrollableView.__init__(self, _win = win)
win32ui.error: The object has been destroyed.
Do you have any problem running Tests/12-scroll.py?
--
Greg
__
PyGUI 2.0.4 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Fixes a few more bugs and hopefully improves things
on Windows, although I can't be sure it will fix all
the Windows problems people are having, because I
haven't been able to reproduce some of them.
What is Py
Christian K. wrote:
I'm afraid, that error is stil there:
>
File "c:\pythonxy\python\Lib\site-packages\GUI\Win32\ScrollableViews.py", line
31, in __init__
GScrollableView.__init__(self, _win = win)
win32ui.error: The object has been destroyed.
That's a bit of a problem, since it works
PyGUI 2.0.5 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
More bug fixes for various platforms.
Still no idea what's causing the "object has been destroyed"
error on Windows XP, though. Does this happen for everyone?
Is there anyone who *has* got 12-scroll.py working f
Randy Syring wrote:
Could you tell me briefly how this project differs from something like
wxPython?
It wraps platform-specific libraries directly, rather than
being a wrapper around another cross-platform library. This
means less bloat and less dependencies. Chances are you
already have the n
Nicolas EISEN wrote:
the icon have the tranparence but the bmp
take this in black. In win32ui, there are not attribute to set the
background in white before write the bmp in DC ... an idea ?
Draw a white rectangle over the bmp before calling
DrawIcon?
--
Greg
_
Randy Syring wrote:
I am wondering if the problems with build 213 have ever been resolved on
Windows. Or was I mistaken that build 213 was the problem?
I don't know. I haven't heard any more about it from
anyone since then.
Has anyone else out there that's having this problem
successfully cur
Tim Roberts wrote:
Depending on your point of view, that's either a usage problem or a
design flaw in the "os" module.
The design of the os module does seem rather screwy in this
area. Since os.environ is a custom mapping type, I don't
know why it doesn't just pass all get and set operations o
Elias Fotinis wrote:
From: "Antoine Martin"
I had forgotten about the pipes (doh), I guess I should start the child
with stdin=stdout=stderr=None then?
That won't necessarily close the OS-level file descriptors,
though. If you want that, you need to do something like
for i in xrange(3):
I have a bizarre problem. The following program:
import win32ui
app = win32ui.GetApp()
app.Run()
works fine when run from a command window using
python.exe -- it happily sits there waiting for
events until I kill it with the task manager.
However, if I run it using pythonw.exe, the
GetApp() cal
PyGUI 2.1 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Highlights of this version:
* Win32:
Fixed bug preventing PyGUI apps from working under pythonw
Fixed incorrect mouse coordinates in ScrollableView
Added more standard cursors
* MacOSX:
Randy Syring wrote:
I am still seeing the bug noted below in 2.1. Do you have plans to
tackle it?
>
win32ui.error: The object has been destroyed.
Reportedly it can be worked around by reverting to build
212 of pywin32. I haven't had a chance to investigate
what's causing it yet, sorry.
--
Luis A. Bastiao Silva wrote:
But it just works for application wroted from stratch, otherwise
application wroted in pygtk need to be ported to work cross-platform.
It's already possible to run pygtk programs on all three
platforms, if you're willing to install the required
libraries. API compa
John Finlay wrote:
Greg,
Why do you post to mailing lists that are unrelated to your project? I
would appreciate it if in future you didn't post a message about your
project ot the PyGTK mailing list.
I posted the announcement to the pyobjc, pygtk and pywin32
lists because PyGUI uses all of
John Finlay wrote:
Start your own list for the community that is interested in your project.
That's not going to reach anyone who doesn't already
know about it.
It's probably a good idea for ongoing discussion,
though. Any suggestions on the best way of going
about it? I could start a Google
Vernon Cole wrote:
If it
produces code for a cross platform GUI API then the resulting
application will be cross platform. I would love to find one such that
actually works and produces good code.
Code produced by a GUI designer shouldn't be getting edited
by humans, so the quality of the code
Roger Upole wrote:
Greg Ewing wrote:
Randy Syring wrote:
win32ui.error: The object has been destroyed.
I looked at this a while ago, and have a good idea where the
problem is. I'll try to get a fix in before the next build.
If it's because of the screwy things I'm doing
Sturla Molden wrote:
The only GUI API that doesn't suck is no API at all.
GUIs should be designed visually.
There's a lot more to a GUI API than just specifying
the layout.
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.p
PyGUI 2.1.1 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
This is an emergency bugfix release to repair some major
breakage in the gtk version. Also corrects some other
problems.
What is PyGUI?
--
PyGUI is a cross-platform GUI toolkit designed to be light
Thomas Heller wrote:
Is the list available on gmane?
Not yet, but I'll look into making it so.
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
I'm trying to create a PyRichEditCtrl with scroll bars.
I can get scroll bars to appear using the appropriate
style flags in CreateWindow, but they don't entirely
work. Clicking on the scrolling arrows causes the text
to scroll, but the position of the thumb doesn't get
updated to match.
Can anyo
Thomas Heller wrote:
Is the list available on gmane?
I have received a reply from gmane saying that a subscription
request has been sent and that the gmane group would be
created when the first message arrives.
I'm not a gmane user myself, so someone may want to take a
look over there and see
Thomas Heller wrote:
Is the list available on gmane?
I have received a reply from gmane saying that a subscription
request has been sent and that the gmane group would be
created when the first message arrives.
I'm not a gmane user myself, so someone may want to take a
look over there and see
The PyCPrintDialog in pywin32 doesn't seem to have
any methods or attributes.
How are you supposed to get information out of it?
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
The PyCPrintDialog in pywin32 doesn't seem to have
any methods or attributes.
How are you supposed to get information out of it?
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
I'm wrestling with printing support for PyGUI on Windows.
I'd like to set up the coordinate system during printing
so that (0, 0) is at the corner of the paper, so that I
can arrange for the margins to have predictable sizes.
However, the device context I get from calling PrintDlg()
seems to be s
Vernon Cole wrote:
In searching for documentation, remember a quirk in Microsoft
vocabulary... a "printer" is software, not hardware. The device on the
corner of your desk with the paper in it is not a "printer", it is a
"printing device."
Yes, I know. I'll be happy if I can somehow find out
Thomas Heller wrote:
I would guess that GetDeviceCaps() returns the information that you need.
Yep, this turns out to be right, although it's *very*
difficult to find this out if you start looking in
the area of the docs that talks about printing!
My margins are spot-on now. I'm happy.
Need
pyt...@bdurham.com wrote:
I'm not entirely clear on why there are 2 battery classes and why I
would choose to use vs. the other, but I suspect the
Win32_PortableBattery class is for machines with advanced power supply
management capabilities.
Obviously it's for machines that have a *wireless*
Here's another possible solution. Each process tries to open a
socket connection to a server process. When the maximum number of
processes are connected, the server stops accepting connections.
The server also selects all of its open connections for reading.
When a process dies, the server will n
pyt...@bdurham.com wrote:
...'Choosing a
collection of common modules/packages for a general purpose reusable
PY2EXE runtime'. This post got zero feedback so our idea is either too
stupid or too obvious to warrant further conversation :)
I think the problem is that in the rare cases when you n
Andrew MacIntyre wrote:
Is it possible to draw directly to the desktop? I vaguely recall reading
somewhere that that is how some splash screens are done to avoid the overhead
of a window...
Somehow I doubt that. I have a hard time imagining that
displaying a splash screen could be a serious
Mark Hammond wrote:
as they were replies
to legitimate mailing-list messages, I was fooled into approving them.
Spammers are getting more obnoxiously devious all the time.
You have to wonder at the mentality of someone who goes to
such lengths to try to trick people into reading messages
that t
Bill Janssen wrote:
myprogram --title="That's the game! says Mike "Hammer" Brotsky" --file=...
Since
cmd.exe also supports pipelines, I'd sort of expect it to do the right
thing on Windows, too.
Don't know about later versions, but in Python 2.5 the pipes
module is listed under "Unix spe
On 21/10/10 14:02, Roger Upole wrote:
The problem stems from these 2 lines in ScrollableViews.py:
rev = ui.CreateRichEditView()
win_dummy_doc = rev.GetDocument()
The win32ui framework really should not allow a view to be created
without a valid document.
Actually, the problem is that it *won
Roger Upole wrote:
The resource is actually in win32ui.pyd, rather than in Pythonwin
itself. I've just verified that this method works from plain python.exe.
That's great news! I thought I had already tried something
very much like what you suggested, but maybe I hadn't hit
upon the right res
Roger Upole wrote:
You instantiate the MFC view object without a document, but in order
to actually create a window and do anything useful with it, it needs
a valid document.
Are you absolutely sure about that?
At the MFC level, I can't see anything to stop you from
instantiating a CView and
On 22/10/10 01:47, Robert wrote:
But perhaps long time and debugging to get real world usability (Win).
One could use the (bugfixed) existing behaviour, plus __getattr__ on the
._win Component member etc for first and hope for platform independent
behavior later (some 90%+x auto-translate code).
Does the kiosk application need all 3 of those keys?
If not, you could remove one of them from the keyboard
and glue something over the hole.
--
Greg
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-w
PyGUI 2.3.1 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
This version incorporates a modification that I hope will
improve the behaviour of ScrollableViews on Windows with
pywin32 builds later than 212.
(There are still problems with it, though. If the Scrollable
View
pyt...@bdurham.com wrote:
I have a *resizable* Tkinter window with min and max sizes set. I want
to prevent users from attempting to maximize this window because the
window pops over to the upper left of the display - a behavior that my
users find very frustrating (and of little value).
If t
PyGUI 2.3.2 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
This version fixes a problem in Cocoa whereby the coordinate
system for drawing in a Pixmap was upside down, and corrects
a slight mistake in the Canvas documentation.
What is PyGUI?
--
PyGUI is a
Octavian Rasnita wrote:
Does this mean that under Windows it uses the Win32 standard GUI like WxPython?
I am asking this because I want to know if the interfaces it creates will be
accessible for screen readers.
I have no experience with screen readers, so I can't be sure.
However, PyGUI uses
Marc-Andre Belzile wrote:
I'd like to be able to attach an OpenGL context to a Canvas. Can PyOpenGL and
pyGUI work together?
Yes, there is a GLView class for on-screen drawing, and a GLPixmap
class for off-screen drawing with OpenGL.
--
Greg
___
pyt
Reckoner wrote:
Given the handle of a text field or button embedded in some window,
how can I find the parent window that contains the handle?
Use the win32gui.GetParent() function?
--
Greg
___
python-win32 mailing list
python-win32@python.org
http:
Until recently I didn't think it was possible to use .NET
libraries from CPython, but then I came across this:
http://pythonnet.sourceforge.net/
Using this, it looks like it should be possible to create
a PyGUI implementation based on Windows Forms. This has the
potential to solve a number of he
From: Octavian Rasnita [mailto:orasn...@gmail.com]
> If it will still be possible to use the standard Win32 GUI,
> it is OK to be able to use Windows Forms as an adition.
No, if I go this way, I would probably stop maintaining
the current implementation. I don't want to have to
support two backen
Octavian Rasnita wrote:
From: "Greg Ewing"
No, if I go this way, I would probably stop maintaining
the current implementation.
Oh, in that case imho I think this is a very bad idea.
Can you elaborate on exactly what is bad about it, and
suggest an alternative?
The standard W
Tim Golden wrote:
Python.NET seems to sit in an awkward
place in the ecosystem. Its niche seems to be: where you want a small
bit of .NET technology (such as SQL-SMO in my case) but don't want to
migrate any win-specific Python code. (ie stuff relying on pywin32)
Or, as in my case, you are deve
Tim Golden wrote:
"""
Re: [python-win32] Possible trouble with pywin23-216 on python 3.2
"""
Aha! There's your problem: you're trying to install pywin23.
Unless of course you're using one of those rare machines based
on Intel's little-known 23-bit architecture. (There was a typo
early on in th
I recently tried running PyGUI on Python 3 using
pywin32 build 216, and a couple of things are
not working quite the same way as they were with
Python 2 and build 213.
1) The default font used for control labels etc.
is slightly smaller.
2) When I calculate the width of a piece of text
using DC.
Mark Hammond wrote:
What version of python and how many bits? I'm guessing you tried 3.2,
which means you must have used the 64bit version
No, it's 3.1, and 32 bit. It can't be 64, because the
machine I'm running it on can't handle that. (And it's
definitely not 23 bit either. :-)
The only o
Tim Roberts wrote:
Are you running this on a different computer?
No, it's the same computer. I can run 2.x and 3.x versions
of the same test side by side, and the 2.x one has normal
sized text whereas the 3.x one has tiny text.
Oddly, it only seems to affect text drawn by the standard
win32 c
I think I've narrowed down what's going on with the font
sizes a bit more. It has to do with the interperetation
of the nHeight parameter to CreateFont.
It appears that you can specify the height using either
a positive or negative number. One is taken to include
the font's internal leading, and
Roger Upole wrote:
The conversion in win32ui has changed since 212. At one time it
was negating the height that was passed in:
if (PyInt_Check (v))
pLF->lfHeight = -PyInt_AsLong(v);
Ah, that explains it all!
You can also extract the version embedded in the pyd's using
win32api.GetFileV
According to the pywin32 docs, PyCWnd.GetScrollInfo and
PyCWnd.SetScrollInfo have the following signatures:
int = GetScrollInfo(nBar, mask)
int = SetScrollInfo(nBar, redraw)
Surely these can't be right? Shouldn't there be a
SCROLLINFO struct involved there somewhere?
--
Greg
_
PyGUI 2.4 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Highlights of this release:
* Python 3 Compatible on MacOSX and Windows.
* ScrollableView has been overhauled on Windows and should now
work with all builds of pywin32 as far as I know.
What is PyGUI?
---
? Is there
something I should do when creating a window to make sure it
appears on top?
Original Message
Subject:Re: [Pygui] Window Always Starts Behind Others
Date: Mon, 28 Mar 2011 10:17:10 -0400
From: Mark Melvin
To: Greg Ewing
CC: py...@python.org
Is there a way to tell an ordinary Windows application to
look for fonts in a specific directory, or load a font from
a specific file? The only things I've been able to find about
this using Google all relate to .NET.
--
Greg
___
python-win32 mailing li
Gabriel Genellina wrote:
I think AddFontResourceEx is what you are looking for.
http://msdn.microsoft.com/en-us/library/dd183327(v=VS.85).aspx
Yes, that sounds like it may do what I want, thanks.
--
Greg
___
python-win32 mailing list
python-win32@p
Tim Golden wrote:
Backticks are a little-used alternative to
the repr () function -- deprecated in Python 3 ISTR.
Actually it's been *removed* in Python 3:
Python 3.1.2 (r312:79147, Mar 2 2011, 17:43:12)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "lic
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 problem I'm having is that
GDI+ on Windows expects BGRA, where
How are you supposed to create a PyCComboBox? There
doesn't seem to be a CreateComboBox function anywhere.
I tried using CreateControl("COMBOBOX", ...) but it
says that the CLSID is invalid.
--
Greg
___
python-win32 mailing list
python-win32@python.org
Vernon Cole wrote:
The problem is that the Windows combobox does not allow for the user
to type more than one letter to select an item from the list
I'm not sure it's necessary to replace the entire thing just to
fix that -- it ought to be possible to override the keyboard event
handling and
Mark Hammond wrote:
I think you just want a CreateWindow(Ex) with "Combobox" as the class.
Yes, but the puzzle was how to get a PyCComboBox object rather
than a raw window handle.
I discovered it can be done by calling CreateWindowFromHandle
on the resulting handle, but I don't think I should
PyGUI 2.5 is available:
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
Lots of new stuff in this version. Highlights include:
- Improved facilities for customising the standard menus.
- Functions for creating PyGUI Images from PIL images and numpy arrays.
- ListButton - a pop
Colin Brown wrote:
Macintosh:PyGUI-2.5 colin$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 12, in
from distutils_extensions import pygui_build_py
ImportError: No module named distutils_extensions
Sorry about that! The missing file is attached, and I'll
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
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
_
In PyGUI I have a need to find out whether the application
has any visible windows, so I can quit when the last visible
window is closed.
However, I can't seem to find a way of iterating over all
the windows belonging to the application, without also
getting windows belonging to *other* applicati
Tim Golden wrote:
Just for information, my nearly-what-you-want is here:
http://timgolden.me.uk/python/win32_how_do_i/find-the-window-for-my-subprocess.html
Yep, I came up something similar -- was just wondering whether
there was some more obvious way that I was missing. Seems not.
Thanks,
G
1 - 100 of 110 matches
Mail list logo