473,654 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

So I guess PyUI is long abandonded? What else is there?

In my copious spare time [that's a joke, I say, that's a joke] I've
been dabbling at getting a computerized version of a board game
working. After deciding that tk just made me want to vomit, and wx was
like swimming through concrete slurry, and others I have mercifully
forgotten about, I stumbled across pygame. (maybe not for the first
time; I think I set it aside earlier because it was described as being
aimed at a different sort of game, and besides, I had hoped wx might
serve more than one purpose for me.) This summer I picked the project
up again, and with PyGame pretty nearly all the things that had me
tearing my hair out with wx instead just work. Well, okay, I did need
some help finding the less visible parts of the docs, but that took all
of five minutes on IRC to get straightened away.

So the biggest part of the GUI is mostly done: the board and such
display, scroll, etc. Next up are the mostly non-graphic bits, the
text and numbers section of the display. I guess this part would have
been more or less easy in wx, but PyGame offers only very low-level
primitives. PyUI was the most promising package I found, but it seems
to be long dead, judging by the lack of life in its mailing list,
untouched bug list, and general brokenness. The fact that the last
several releases are all zip archives with names that include "win32"
reinforces my feeling that this is not going to get me anywhere useful
for a project that has to work on both MS and X11 platforms. :-(

So I'm just trolling, my hook baited in accordance with Aahz's
instructions, in hopes that PyUI still lives in a form that would be
useful, and that someone will rise to the bait and explain to me the
error of my ways (and more usefully, where the useful versions are to
be found). Alternately, any leads on a nice, simple widget set for a
PyGame environment would be equally appreciated.

Thanks!

[I don't normally like to get emailed and posted replies, but since I
only intermittently have time to sift through this very active group,
in this case I would appreciate the favor, if it's convenient.]

--
If there were a verb meaning "to believe falsely", it would not have
any significant first person, present indicative. -- Wittgenstein
Jul 18 '05 #1
9 2670
On Sat, 18 Sep 2004 18:16:07 +0000 (UTC), Martin Maney <ma***@pobox.co m> wrote:
So the biggest part of the GUI is mostly done: the board and such
display, scroll, etc. Next up are the mostly non-graphic bits, the
text and numbers section of the display. I guess this part would have
been more or less easy in wx, but PyGame offers only very low-level
primitives. PyUI was the most promising package I found, but it seems
to be long dead, judging by the lack of life in its mailing list,
untouched bug list, and general brokenness. The fact that the last
several releases are all zip archives with names that include "win32"
reinforces my feeling that this is not going to get me anywhere useful
for a project that has to work on both MS and X11 platforms. :-(


I've checked PyUI right now, and it seems that there is a release
numbered "1.0" - which is a sign that it must have reached a somewhat
stable stage. The win32 ZIP file that I've downloaded does not contain
any windows specific dll, pyd or exe file, but only pure Python code.
It includes renderers for OpenGL and PyGame itself, which are cross
platform, as far as I know. Are your sure that it will not work for
you? What is the latest version you tried?

Best regards,

--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmai l.com
mail: ca********@yaho o.com
Jul 18 '05 #2
On Sat, Sep 18, 2004 at 06:01:13PM -0300, Carlos Ribeiro wrote:
I've checked PyUI right now, and it seems that there is a release
numbered "1.0" - which is a sign that it must have reached a somewhat
stable stage. The win32 ZIP file that I've downloaded does not
contain any windows specific dll, pyd or exe file, but only pure
Python code.


Yes, as an already-installed tree with the files compiled - well, that
explains the 1.0.Py2-2 versioning in the name.

Anyway, I've found the problem buried in a feature request at the
project's sourceforge site. In his own words:

The OpenGL renderer on 0.95 depends on WGL which is available only on
Windows implementations . Support for other platforms such as Mac and
Linux would be nice.

Since the project description claims it, yeah, that sure would be nice.
This perfectly explains the errors I've been seeing. Thanks, Carlos,
you stirred me to dig deeper and put the nail in it - it's another case
of "Microsoft compatibility" leading another poor fool astray.

This truly does help. Now I can stop wondering whether it was
something I was doing wrong and walk away from this waste of time.
Would some god-like person with access please make a note of this on
the uneditable PyUi page on the wiki? Then there'd be at least a
chance others could avoid wasting their time.

Thanks!

--
Microsoft, which used to say all the time that the software business
was ruthlessly competitive, is now matched against a competitor whose
model of production and distribution is so much better that Microsoft
stands no chance of prevailing in the long run. They're simply trying
to scare people out of dealing with a competitor they can't buy,
can't intimidate and can't stop. -- Eben Moglen

Jul 18 '05 #3
Martin Maney wrote:
On Sat, Sep 18, 2004 at 06:01:13PM -0300, Carlos Ribeiro wrote:
I've checked PyUI right now, and it seems that there is a release
numbered "1.0" - which is a sign that it must have reached a somewhat
stable stage. The win32 ZIP file that I've downloaded does not
contain any windows specific dll, pyd or exe file, but only pure
Python code.


Yes, as an already-installed tree with the files compiled - well, that
explains the 1.0.Py2-2 versioning in the name.

Anyway, I've found the problem buried in a feature request at the
project's sourceforge site. In his own words:

The OpenGL renderer on 0.95 depends on WGL which is available only on
Windows implementations . Support for other platforms such as Mac and
Linux would be nice.

Since the project description claims it, yeah, that sure would be nice.
This perfectly explains the errors I've been seeing. Thanks, Carlos,
you stirred me to dig deeper and put the nail in it - it's another case
of "Microsoft compatibility" leading another poor fool astray.

This truly does help. Now I can stop wondering whether it was
something I was doing wrong and walk away from this waste of time.
Would some god-like person with access please make a note of this on
the uneditable PyUi page on the wiki? Then there'd be at least a
chance others could avoid wasting their time.

Thanks!


Well, I think that it's simply due to the fact that the docs for pyui are
out of date. It's true that the gl rendere needs WGL, but the p3d renderer
only needs SDL and pygame to work. Too bad that they don't mention it,
isn't it ?
Jul 18 '05 #4
Martin,

As the other poster mentioned, the SDL-based renderer for PyUI may
help you. Please let us know if you made it work.

I share your pain -- I'm fighting a long battle to find a simple,
intuitive, productive and cross-platform GUI framework for my own
apps. In the end, I'll probably do with many others had done before me
-- end up writing my own framework as a shim layer over someone's else
work. I don't know the reason - if that's just because we can't agree
on a framework, or if it's because there are so many different ways
(and platforms) to make it work that some type of agreement, or
standardization , is just impossible at this point. But I hope the
situtation will improve.
On Sat, 18 Sep 2004 17:07:14 -0500, Martin Maney <ma***@two14.ne t> wrote:
On Sat, Sep 18, 2004 at 06:01:13PM -0300, Carlos Ribeiro wrote:
I've checked PyUI right now, and it seems that there is a release
numbered "1.0" - which is a sign that it must have reached a somewhat
stable stage. The win32 ZIP file that I've downloaded does not
contain any windows specific dll, pyd or exe file, but only pure
Python code.


Yes, as an already-installed tree with the files compiled - well, that
explains the 1.0.Py2-2 versioning in the name.

Anyway, I've found the problem buried in a feature request at the
project's sourceforge site. In his own words:

The OpenGL renderer on 0.95 depends on WGL which is available only on
Windows implementations . Support for other platforms such as Mac and
Linux would be nice.

Since the project description claims it, yeah, that sure would be nice.
This perfectly explains the errors I've been seeing. Thanks, Carlos,
you stirred me to dig deeper and put the nail in it - it's another case
of "Microsoft compatibility" leading another poor fool astray.

This truly does help. Now I can stop wondering whether it was
something I was doing wrong and walk away from this waste of time.
Would some god-like person with access please make a note of this on
the uneditable PyUi page on the wiki? Then there'd be at least a
chance others could avoid wasting their time.

Thanks!

--
Microsoft, which used to say all the time that the software business
was ruthlessly competitive, is now matched against a competitor whose
model of production and distribution is so much better that Microsoft
stands no chance of prevailing in the long run. They're simply trying
to scare people out of dealing with a competitor they can't buy,
can't intimidate and can't stop. -- Eben Moglen


--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmai l.com
mail: ca********@yaho o.com
Jul 18 '05 #5
Christophe Cavalaria <ch************ *@free.fr> wrote:
Well, I think that it's simply due to the fact that the docs for pyui are
out of date.
And incomplete at any time, though that's hardly uncommon.
It's true that the gl rendere needs WGL, but the p3d renderer
only needs SDL and pygame to work. Too bad that they don't mention it,
isn't it ?


It would be nice if the problem were so easily solved, but as of 0.95
(last one released as an installable package rather than an image of an
installed-on-Windows tree), p3d seems to be openGL based and is, in
fact, the invoker of the crash in some of the tests I tried to run to
see if the package were working:

<source pyui/core.py, init()>
elif renderer == "p3d":
from renderers.openg lPygame import OpenGLPygame
</source>

renderers.openg lPygame imports openglBase, and that tries to import the
WGL thing, and then it falls over. :-(

Perhaps you meant the "2d" renderer (aka pygame2D module)? With that
explicitly requested, many of the test/demo programs run, sort of.
Their behavior is not what I'd call encouraging, from the request for
"font.ttf", with the failure, on both an older and quite recent version
of pygame, reported as "Couldn't find arial.ttf" (WTF?), to the lack of
any apparent means of stopping them other than control-C in the xterm
from which they were run (well, or doing something that crashes them -
I'm still not sure what I did to minesweeper).

Oh, and there's no way to tell it what font you'd like to use, nor what
size (at least with the pygame renderer; there's a "font" argument to
one function, but it's ignored). Or are you supposed to go poking
around at the module-scope variables, like poke'ing bytes into magic
locations in a prehistoric Basic program?

"Pining for the fjords" sounds about right. :-(

--
Hebb's dictum: If it isn't worth doing, it isn't worth doing well.
Jul 18 '05 #6
Carlos Ribeiro <ca********@gma il.com> wrote:
stable stage. The win32 ZIP file that I've downloaded does not contain
any windows specific dll, pyd or exe file, but only pure Python code.
Sorry, 100% Python code is no more inherently portable than 100% C
code. It's avoiding non-portable libraries and etc. that make the
difference in both cases.
Are your sure that it will not work for you? What is the latest
version you tried?


See longer reply in this thread, and yes, I'm sure it would be like
pissing into the wind... the wind along the Gulf coast last week. :-(

--
I didn't write a whole, free operating system, either. I wrote some pieces
and invited other people to join me by writing other pieces. So I set an
example. I said, "I'm going in this direction. Join me and we'll get
there." And enough people joined in that we got there. -- R M Stallman
Jul 18 '05 #7
Martin Maney wrote:
Christophe Cavalaria <ch************ *@free.fr> wrote:
Well, I think that it's simply due to the fact that the docs for pyui are
out of date.
And incomplete at any time, though that's hardly uncommon.
It's true that the gl rendere needs WGL, but the p3d renderer
only needs SDL and pygame to work. Too bad that they don't mention it,
isn't it ?


It would be nice if the problem were so easily solved, but as of 0.95
(last one released as an installable package rather than an image of an
installed-on-Windows tree), p3d seems to be openGL based and is, in
fact, the invoker of the crash in some of the tests I tried to run to
see if the package were working:

<source pyui/core.py, init()>
elif renderer == "p3d":
from renderers.openg lPygame import OpenGLPygame
</source>

renderers.openg lPygame imports openglBase, and that tries to import the
WGL thing, and then it falls over. :-(


I remember now, you must also comment the import for WGL. It isn't needed
anyway since it uses SDL for the fonts and WGL was only used for that on
windows.
Perhaps you meant the "2d" renderer (aka pygame2D module)? With that
explicitly requested, many of the test/demo programs run, sort of.
Their behavior is not what I'd call encouraging, from the request for
"font.ttf", with the failure, on both an older and quite recent version
of pygame, reported as "Couldn't find arial.ttf" (WTF?), to the lack of
any apparent means of stopping them other than control-C in the xterm
from which they were run (well, or doing something that crashes them -
I'm still not sure what I did to minesweeper).

Oh, and there's no way to tell it what font you'd like to use, nor what
size (at least with the pygame renderer; there's a "font" argument to
one function, but it's ignored). Or are you supposed to go poking
around at the module-scope variables, like poke'ing bytes into magic
locations in a prehistoric Basic program?


The only way to tell him what font to use seems to be writing a new theme,
or using a theme with a font parameter.

Jul 18 '05 #8
[p&e per request, but please don't return the favor]

In article <ma************ *************** ***********@pyt hon.org>,
Martin Maney <ma***@two14.ne t> wrote:

This truly does help. Now I can stop wondering whether it was
something I was doing wrong and walk away from this waste of time.
Would some god-like person with access please make a note of this on
the uneditable PyUi page on the wiki? Then there'd be at least a
chance others could avoid wasting their time.


Which wiki? If you're talking about the one on python.org, you need to
go through the UserPreferences link to get yourself an account, but
after that, Bob's your uncle. (Even works with Lynx, as long as cookies
are enabled....)
--
Aahz (aa**@pythoncra ft.com) <*> http://www.pythoncraft.com/

"A foolish consistency is the hobgoblin of little minds, adored by little
statesmen and philosophers and divines." --Ralph Waldo Emerson
Jul 18 '05 #9
Aahz <aa**@pythoncra ft.com> wrote:
Which wiki? If you're talking about the one on python.org, you need to
go through the UserPreferences link to get yourself an account, but


Did that, it found the account I'd setup some time past, so maybe it
was just a lost or expired cookie. I wouldn't have expected a
"membership required to edit" setting to have shown up as "immutable" ,
but I take it that's just Moin's funny way of handling that case.

--
Hebb's dictum: If it isn't worth doing, it isn't worth doing well.
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
9599
by: mjf | last post by:
Hello, We made a backup image file for a database on one machine (A), and we restored the database on another machine (B), using the backup image file. Everything went fine. But when we try to connect to the database on B, it's taking forever (about 1 minute) if it's the first connection to the database. Any following connections have no problem. If we close all the connections, and do a connection again, it will take about 1 minute...
8
3507
by: Bryan Parkoff | last post by:
int has two bytes or four bytes. long has four bytes or eight bytes. I can't be sure to choose int or long keyword because I don't trust to get the wrong size. I always check by using sizeof(...). I always use "short int" to show two bytes and "long int" to show four bytes. It may not be accurate when I port my code from Microsoft C/C++ Compiler to other C/C++ Compiler such as Linux, Unix, Mac, etc. I always trust Microsoft's keyword...
4
1739
by: Ben | last post by:
Hi We have a list of file paths and short file names in our database. We need to loop through them all, picking up the long file name from the file itself and check that the long file name does not include a "~" character. I have the short file name and path in a variable (eg "c:\data\123442~1.doc") how can I get the long file name from this data.
28
2510
by: silvia.fama | last post by:
Hi! I'm using c language. I need to copy a long type value into a char string using a memcpy function: memcpy(string, (long *) value, len) this value will be then insert into a database. On windows machine it works well, on Solaris not. The windows and solaris path into c language is the same. I'd like to say also that real value works correctly also if they are
19
1668
by: Mary Pegg | last post by:
There's got to be a better way: if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; if (isset($c)) echo $c."<br>"; but it's late and my brain is frazzled. Any ideas, oh PHP gurus? --
105
6161
by: Keith Thompson | last post by:
pereges <Broli00@gmail.comwrites: These types already have perfectly good names already. Why give them new ones? If you must rename them for some reason, use typedefs, not macros. --
0
2286
by: vinodhnair | last post by:
I am trying to link my C++ application (Solaris) to 32 bit libraries of ORACLE 10G. But the application gives the following error in oratypes.h: "rdbms/public/oratypes.h:152: warning: ISO C++ does not support `long long' " When I checked ORATYPES.H, I noticed the following lines there: # ifdef _LP64 typedef unsigned long oraub8; typedef signed long orasb8;
19
3016
by: goodamr | last post by:
I have 3 products. All the products have the same price, I named it : price Each product has a discount. I defined its variables as follows: discount1, discount2, discount3 But there is a different tax for each product when the discount equals 100% (for example) as follows: tax1, tax2, tax3 I wrote this code and it works well:
1
1679
by: goodamr | last post by:
Hi, I need a simple code for the following code, may be a (for loop) or (an array) or (a simple if else) can accomplish this task, but I don't know how to do that. $tax1 is related to $discount1. $tax2 is related to $discount2. $tax3 is related to $discount3. Please help me. Thanks in advance.
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.