pgu-devel Mailing List for Phil's pyGame Utilities (Page 4)
Status: Beta
Brought to you by:
philhassey
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(23) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(3) |
Feb
(18) |
Mar
(4) |
Apr
(8) |
May
|
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
(2) |
Oct
(6) |
Nov
(4) |
Dec
(3) |
2007 |
Jan
(2) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
(12) |
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(1) |
2008 |
Jan
(10) |
Feb
(1) |
Mar
(6) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Kay G. <sa...@al...> - 2006-10-20 12:07:40
|
Hi, VdIAGRA for LESS http://www.punjderpisadefunkin.com =20 they are? continent to search and about three weeks to do it in. I shook off the |
From: <met...@ya...> - 2006-10-14 02:27:42
|
Hi, Does anyone know how to change the default location of the pop up dialog windows? The current location is in the middle and I'd like to change it to one of the corners. Thanks! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: <met...@ya...> - 2006-10-09 03:10:55
|
Hi, I am a total newbie with Python/Pygame/Pgu. So any help is appreciated! In the examples/gui7.py, the color values are not reset when I close the pop up window. How do I reset the values by clicking that red (close) button? So that the values will be reset when I open the dialog pop up window again. Thanks again. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Donal H. <dhe...@us...> - 2006-09-05 01:02:29
|
Alrighty. I'm using pgu for pyweek and after spending about 4 hours on what I thought was user-error I think I've found either a bug or an incompatibility with the versions of stuff I have installed. Here's the problem, it is really easy for my to duplicate, blows up every time. Run examples/gui12.py, click on "Browse..." Here's the error: > File "C:\Documents and Settings\Donal > Heidenblad\Desktop\SVN_PYWEEK\trunk\installs\pgu-0.10.5\examples\gui12.py", > line 11, in open_file_browser > d = gui.FileDialog() > File "..\pgu\gui\dialog.py", line 87, in __init__ > self.title = basic.Label(title_txt, cls=cls+".title.label") > File "..\pgu\gui\basic.py", line 74, in __init__ > self.style.width, self.style.height = self.font.size(self.value) > AttributeError: 'int' object has no attribute 'size' So, I get almost exactly the same trace with my program... For some reason what should be a tuple is an int. I don't get it, I couldn't see any glaringly obvious errors. Dialog works fine. This is with ActivePython 2.4.3.12 Windows XP (32-bit) and Pygame 1.7.1. (And we just got another crash on my teammates machine...) I can't see anything wrong... Labels work fine everywhere, in my code and in the pgu examples, it is only FileDialog that seems to have this Tuple/Int issue. So, I'm going to work on another part of the program, if anyone spots a nice fix, I'd much appreciate it. Thanks, Donal |
From: Hilja O. <or...@co...> - 2006-09-04 01:01:00
|
Hi =20 All you g r P h HAR j MAC q Y d y irect a ly from the man y ufa l cture j r, Your c h hanc x e to e l conom o ize wi t th us http://kawterytunhase.com |
From: Ciana D. <wo...@ac...> - 2006-08-30 17:33:43
|
Hi, =20 http://angunadeswiondeca.com , g=20 , a=20 , u=20 Nothing else happened. The boy played, Iron John watched him in=20 Perhaps in your society, Jim. But here it simply signifies highly=20 doubts from my expression. It is just the only way that we can get=20 |
From: Imam C. <tro...@fm...> - 2006-08-30 06:40:43
|
Hi, Goo b d news for you. =20 PH i ARMAC p Y di t rectl w y from the m n anuf l actur e er, E c cono y mize u b p to 6 o 0 % w d ith us http://nimikedasunterpo.com , l=20 , y=20 , k=20 stilled, silent-dead? I started towards The Commander, to relieve him of his gun-saw that his finger was tight on the trigger! But with each step I felt the air |
From: Praxiteles H. <bri...@ha...> - 2006-08-28 15:04:27
|
Hi, Go y od news for you. =20 PHA y RMA m CY di l rec s tly from the m w anuf n actu l rer, Ec s ono v mize u l p to 60 e % w k ith us http://zhedungasetion.com , g=20 , m=20 , b=20 unlocked the restraining cuff on my ankle. f landed it to the other who emotionlessly bent and snapped it t(> Isis own ankle. Why-why are you doing this? I asked him. |
From: Margareta W. <lei...@co...> - 2006-08-27 01:03:29
|
Hi, Goo w d news for you. =20 P r HARM b ACY d r irectl d y from the ma n nufa g ctur n er, Ec o onom h ize u h p to 6 a 0 % w l ith us http://ehukderunades.com , t=20 , w=20 , x=20 The public will see Svinjar as a benefactor of the first order. I gather that you are prepared to play a benefit performance? Thats what we are here for. |
From: Phil H. <phi...@ya...> - 2006-07-25 14:32:38
|
Ethan, Thanks for the patch, I'll see about adding it in for the next release. (I've added it to changes.txt as a reminder to myself.) With any luck, I'll be doing a new release with a handful of bug fixes and a few cleanup changes. Thanks! Phil Ethan Glasser-Camp <gl...@cs...> wrote: Hi, I see in the archives that this feature was suggested and a patch requested but never supplied (at least in SVN revision 15). I'm attaching one based on my (admittedly limited) understanding of the library. Is this the way to do this? Ethan Index: pgu/gui/dialog.py =================================================================== --- pgu/gui/dialog.py (revision 15) +++ pgu/gui/dialog.py (working copy) @@ -5,6 +5,7 @@ from const import * import table, area import basic, input, button +import pygame.constants class Dialog(table.Table): """A dialog window with a title bar and an "close" button on the bar. @@ -35,12 +36,20 @@ self.td(title,align=-1,cls=self.cls+'.bar') clos = button.Icon(self.cls+".bar.close") clos.connect(CLICK,self.close,None) + self.connect(KEYDOWN, self._keystroke, None) self.td(clos,align=1,cls=self.cls+'.bar') self.tr() self.td(main,colspan=2,cls=self.cls+".main") - + def _keystroke(self, value, _event=None): + '''Handle a KEYDOWN event.''' + if _event.key == pygame.constants.K_ESCAPE: + self.close() + else: + table.Table.event(self, _event) + + # self.tr() # # ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________ Pgu-devel mailing list Pgu...@li... https://lists.sourceforge.net/lists/listinfo/pgu-devel --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |
From: Sanjiv S. <sc...@ha...> - 2006-07-25 02:35:35
|
=20 VljAGGRA from 3 , 33 $ =20 http://www.lacerinfase.com =20 , , , , But green had always meant go to me. Cackling hysterically I stabbed down on the green CHAPTER 26 |
From: Ethan Glasser-C. <gl...@cs...> - 2006-07-24 00:04:51
|
Hi, I see in the archives that this feature was suggested and a patch requested but never supplied (at least in SVN revision 15). I'm attaching one based on my (admittedly limited) understanding of the library. Is this the way to do this? Ethan |
From: Phil H. <phi...@ya...> - 2006-07-20 04:26:53
|
Frank, Yup, that looks like it's broken. I've added it to my BUGS.txt .. There is a reasonable chance that I'll be putting out a new pgu release during the next month. I'll have a number of the existing bugs fixed and a few minor feature enhancements. Thanks for finding that bug! Phil "Frank W. Samuelson" <fr...@me...> wrote: In pgu releases .10.2 and .10.3 the menus freeze up in examples/gui9.py if you click other places when the menus appear. This doesn't happen .10.0, .10.1. -Frank -- ------------------------------------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Pgu-devel mailing list Pgu...@li... https://lists.sourceforge.net/lists/listinfo/pgu-devel --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. |
From: Frank W. S. <fr...@me...> - 2006-07-20 02:13:44
|
In pgu releases .10.2 and .10.3 the menus freeze up in examples/gui9.py if you click other places when the menus appear. This doesn't happen .10.0, .10.1. -Frank -- ------------------------------------------------------------ |
From: altern <al...@gm...> - 2006-06-02 20:05:10
|
hi all I just read an email from april by Mike Wyatt about an error using pgu with opengl : > container.paint(): Button not in App > 800 600 <rect(0, 0, 800, 600)> I am trying as well using pgu with opengl and i am getting a pretty similar error so I was wondering if anyone has done it successfully. If so it would be great to get some example about this. thanks -- enrike |
From: Phil H. <phi...@ya...> - 2006-04-27 04:49:29
|
Jason, thanks for the patch. I've applied it to svn svn://www.imitationpickles.org/pgu/trunk/ -- for the latest Phil Jason Liu <tel...@gm...> wrote: Hi I find a minor bug about FileDialog. If current path includes a directory named such as !XXXX ( ! is the first letter), the parent directory sign ".." will not be the top item of the list. This bug seems to be fixed by changing some code of FileDialog._list_dir() in dialog.py 119 if '..' not in dirs: dirs.append('..') # since python documentation says dirs = os.listdir() would not include '..' and '.', this line can be commented safely. 120 dirs.sort() to # if '..' not in dirs: dirs.append('..') dirs.sort() dirs = ['..'] + dirs --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |
From: Jason L. <tel...@gm...> - 2006-04-26 07:25:12
|
Hi I find a minor bug about FileDialog. If current path includes a directory named such as !XXXX ( ! is the first letter), the parent directory sign "..= " will not be the top item of the list. This bug seems to be fixed by changin= g some code of FileDialog._list_dir() in dialog.py 119 if '..' not in dirs: dirs.append('..') # since python documentation says dirs =3D os.listdir() would not include '..' and '.', this line can be commented safely. 120 dirs.sort() to # if '..' not in dirs: dirs.append('..') dirs.sort() dirs =3D ['..'] + dirs |
From: Phil H. <phi...@ya...> - 2006-04-13 15:21:42
|
I've never tried using pgu with opengl, so I don't know. Tell me if you can figure out how to use it with it. Phil --------------------------------- Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice. |
From: Mike W. <mw...@wi...> - 2006-04-13 03:58:36
|
The problem is the OPENGL setting in pygame.display.set_mode(). Does PGU not support OpenGL? I was hoping to use PGU to render a GUI on top of my PyOpenGL scene. > I'm getting this error when I call the paint() method of my App() method: > > container.paint(): Button not in App > 800 600 <rect(0, 0, 800, 600)> > > Here is a code snippet: > > import pygame, pgu > from pygame import * > from pgu import gui > > pygame.init() > screen = pygame.display.set_mode( (800, 600), DOUBLEBUF | OPENGL ) > app = gui.App() > app.init( gui.Button("Button #1"), screen ) > > while True: > for e in pygame.event.get(): > if e.type == QUIT: > break; > app.paint(screen) > pygame.display.flip() > > Thoughts? > > - Mike > |
From: Mike W. <mw...@wi...> - 2006-04-13 03:44:14
|
I'm getting this error when I call the paint() method of my App() method: container.paint(): Button not in App 800 600 <rect(0, 0, 800, 600)> Here is a code snippet: import pygame, pgu from pygame import * from pgu import gui pygame.init() screen = pygame.display.set_mode( (800, 600), DOUBLEBUF | OPENGL ) app = gui.App() app.init( gui.Button("Button #1"), screen ) while True: for e in pygame.event.get(): if e.type == QUIT: break; app.paint(screen) pygame.display.flip() Thoughts? - Mike |
From: Phil H. <phi...@ya...> - 2006-04-07 21:27:06
|
- added: gui16.py and gui17.py some new fun gui examples. - fixed: isovid doesn't work when using run_codes 'cause it gets width and height from the wrong thing! - change: PIL support removed from tileedit, the code is still in there if someone wants to troubleshoot it - fixed: in tileedit, line 109 should be assert mode in ("RGB", "RGBA"), not assert mode in "RGB", "RGBA" - fixed: when the scroll area is really short, etc, having 3 scroll arrows can take up too much room. so now it only shows as many magic scroll buttons as it can fit neatly. - fixed: using app.paint() with custom event loop skips chsize related stuff - fixed: install script error, where Vera.ttf was not installed - fixed: timer.py bug where the first frame is really long sometimes i think this is due to some kind of a pygame bug also, when FPS are set to 0, the timer is now set to go at "full rate" instead of give a div by zero error - fixed: ScrollArea / SlideBox.widget = x doesn't work. --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. |
From: Phil H. <phi...@ya...> - 2006-04-06 15:22:35
|
Levi, The only way to do this would be to create your own theme with a config.txt setup to handle the different backgrounds. Phil Levi <fl...@ya...> wrote: hi i'm new working wit pgu i have a problem. I need to use more types of buttons in my application, (a buttons background to be different ) if i pass widget(bakground = (SURFACE)) to the widget's argument the (SURFACE) appear in the bacground but the "hover" and "down" funcionallity of the button doesn't work? can anibody help me? levi --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
From: Levi <fl...@ya...> - 2006-04-06 13:20:56
|
hi i'm new working wit pgu i have a problem. I need to use more types of buttons in my application, (a buttons background to be different ) if i pass widget(bakground = (SURFACE)) to the widget's argument the (SURFACE) appear in the bacground but the "hover" and "down" funcionallity of the button doesn't work? can anibody help me? levi --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
From: Phil H. <phi...@ya...> - 2006-03-13 07:23:22
|
- fixed: gui11, when everything is removed scroll bar is removed too soon! - fixed: gui11, graphical crud shows up after removing stuff, sometimes - fixed: Select can drop below window sometimes, and it looks bad. now Selects that are at the bottom of the screen may go upwards. - added: ProgressBar widget & documentation. - fixed: if the widget in the scroll doesn't fill it up, doing any scrolling causes a crash - fixed: gui.Menus not working due to focus related fixes - added: widget.connect gets *values, not just value to pass on so that you can have multi-param methods. See widget.connect documentation for details. - added: widget.send can send the event and the widget to the reciever if the receiving fnc has the params named _widget or _event or _code. See widget.connect documentation. - fixed: disabled items in scrollarea don't get alpha-ized due to alpha image that is being drawn to. - fixed: scrollers don't scroll quite like normal scrollers do... - fixed: slider size can get too small - added: scrollbars added in arrows, so that they are scrollbars instead of just sliders. - fixed: sliders & scrollbars inconsistent, and don't look good - fixed: weird border in scrollarea, sometimes... - fixed: internal cleanup of ScrollBox, etc. the scollers will automatically appear when the sub-widget gets bigger, smaller, etc. - fixed: when you click on a disabled widget, the click can slip to a non-disabled widget - added: .disabled, .focusable attributes to widgets, see widget.widget documentation - fixed: .add, .remove for Container, Table, Document so they all work properly. gui14.py adjusted to demo accordingly - fixed: select to work, by adding an improper use of resize ;) - fixed: a number of improper uses of resize() - fixed: gui.Table to only resize() something a second time if it _really_ needs to - fixed: gui.Table to clear() out old rows properly - fixed: gui.Widget so that chsize() would work a lot faster (thus the gui13.py example is very nice and smooth now, doesn't feel like it is lagging anymore.) - fixed: ScrollBox a lot faster by using double buffering this will, however, require a lot of memory for large buffers but hopefully that won't be a problem, it makes examples/gui12.py blaze during scrolling, whereas before it was quite slow even on my 2x3 GHz machine. - fixed: "calling Button.event() before Button.paint() causes crash" - fixed: "container.remove makes a widget stop working but not disappear" - fixed: some docs about a bug whereby container.add(w) won't work after the app is running --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. |
From: stas z. <sta...@gm...> - 2006-03-01 19:06:48
|
On 3/1/06, Phil Hassey <phi...@ya...> wrote: > Stas, > > When using pgu without using app.run() you need to supply your own > background. To do that, just do something like > > screen.fill((0,0,0)) before you paint the screen. Yep, now it works like expected :-) Thanks. Stas |