From michael.thayer at oracle.com Mon Mar 12 11:27:33 2012 From: michael.thayer at oracle.com (Michael Thayer) Date: Mon, 12 Mar 2012 11:27:33 +0100 Subject: [Pygui] PyGUI and Gtk+ 3 Message-ID: <4F5DCF95.8000504@oracle.com> Hello, Your website briefly mentions stability problems with Gtk+ 3 and its libraries with regard to introspection as a reason for not yet supporting them in PyGUI. Are more pointers to information about this available, or would you be able to tell me a little more about it? Thanks! Regards, Michael -- ORACLE Deutschland B.V. & Co. KG Michael Thayer Werkstrasse 24 VirtualBox engineering 71384 Weinstadt, Germany mailto:michael.thayer at oracle.com Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Komplement?rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: J?rgen Kunz, Marcel van de Molen, Alexander van der Ven From greg.ewing at canterbury.ac.nz Mon Mar 12 12:35:44 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Tue, 13 Mar 2012 00:35:44 +1300 Subject: [Pygui] PyGUI and Gtk+ 3 In-Reply-To: <4F5DCF95.8000504@oracle.com> References: <4F5DCF95.8000504@oracle.com> Message-ID: <4F5DDF90.6030907@canterbury.ac.nz> Michael Thayer wrote: > Your website briefly mentions stability problems with Gtk+ 3 and its > libraries with regard to introspection as a reason for not yet > supporting them in PyGUI. Are more pointers to information about this > available, or would you be able to tell me a little more about it? I submitted a couple of bug reports to the gtk3 project concerning missing gobject-introspection annotations; I don't know whether anything has been done about them yet. I was also having trouble with fonts -- setting the font property of a widget didn't seem to make any difference to it. Plus a few other things that didn't seem to work as advertised -- I can't remember all the details at the moment. At that point I basically gave up and decided to let it mature for a while before having another go. -- Greg From michael.thayer at oracle.com Mon Mar 12 12:39:17 2012 From: michael.thayer at oracle.com (Michael Thayer) Date: Mon, 12 Mar 2012 12:39:17 +0100 Subject: [Pygui] PyGUI and Gtk+ 3 In-Reply-To: <4F5DDF90.6030907@canterbury.ac.nz> References: <4F5DCF95.8000504@oracle.com> <4F5DDF90.6030907@canterbury.ac.nz> Message-ID: <4F5DE065.3080703@oracle.com> On 03/12/2012 12:35 PM, Greg Ewing wrote: > Michael Thayer wrote: >> Your website briefly mentions stability problems with Gtk+ 3 and its >> libraries with regard to introspection as a reason for not yet >> supporting them in PyGUI. Are more pointers to information about this >> available, or would you be able to tell me a little more about it? > > I submitted a couple of bug reports to the gtk3 project concerning > missing gobject-introspection annotations; I don't know whether > anything has been done about them yet. > > I was also having trouble with fonts -- setting the font property > of a widget didn't seem to make any difference to it. Plus a few > other things that didn't seem to work as advertised -- I can't > remember all the details at the moment. At that point I basically > gave up and decided to let it mature for a while before having > another go. Thanks for your answer! Do you have any started code in case I get a chance to have a look at it? And an unrelated question - did you ever consider supporting Qt/KDE as well as Gtk+ on X11? Regards, Michael -- ORACLE Deutschland B.V. & Co. KG Michael Thayer Werkstrasse 24 VirtualBox engineering 71384 Weinstadt, Germany mailto:michael.thayer at oracle.com Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Komplement?rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: J?rgen Kunz, Marcel van de Molen, Alexander van der Ven From jesse.koops at gmail.com Wed Mar 14 09:42:24 2012 From: jesse.koops at gmail.com (jesse koops) Date: Wed, 14 Mar 2012 09:42:24 +0100 Subject: [Pygui] response to "bugs in pygui" Message-ID: Hi, not sure how this works. I'm responding to the message on: http://mail.python.org/pipermail/pygui/2012-January/000223.html After applying the proposed fix: "include = include.intersection(sum(always_include))", the blobedit script works but there is no (visible) menu rendered. When I click on the leftmost spot where a menu could be, I get a nice message: "Sorry, something went wrong. Error: the window handle is invalid". Clicking traceback gives the following error: Traceback (most recent call last): File "C:\Python32\lib\site-packages\GUI\WinUtils.py", line 93, in OnCommand self._forward_reflected_message(lParam, name) File "C:\Python32\lib\site-packages\GUI\WinUtils.py", line 100, in _forward_re flected_message wnd = ui.CreateWindowFromHandle(lParam) error: The window handle is invalid. I'm using python 3.2 on windows 7, pygui 2.5.3, pywin32 Thanks, Jesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkamph at juno.com Sat Mar 24 16:47:11 2012 From: jkamph at juno.com (jkamph at juno.com) Date: Sat, 24 Mar 2012 15:47:11 GMT Subject: [Pygui] Windows not being refreshed Message-ID: <20120324.104711.5575.0@webmail-beta02.dca.untd.com> Hello - I've enjoyed using the framework so far, but have run in to a frustration with my window not being redrawn. From a basic framework perspective, here's how I have things set up. class My_Window( Window ) def __init__(self, **kwds): Window.__init__(self, **kwds) self._main_frame = Frame( #frame attributes ) self._sub_frame = None self.place( _main_frame ) def set_sub_frame( self, sub_frame ): if None <> self._sub_frame: self._main_frame.remove( self._sub_frame ) self._main_frame.place( sub_frame ) self._sub_frame = sub_frame #end My_Window class class My_App( Application ) def __init___( self ): Application.__init__(self) def open_app( self ): self._main_window = My_Window( #window attributes ) # I create other buttons and things on the GUI that will activate # actions in this main application self._main_window.show() def button_is_pressed( self ): new_frame = Frame( # frame attributes ) self._main_window.set_sub_frame( new_frame ) #end My_App class my_app = My_App( ) my_app.run( ) #end code When I give a new sub frame (or any other GUI object) in to the main frame, all of the text of both objects are drawn in the main window. If I hide the window and bring it back to the front, it'll be re-drawn, but I can't seem to find where to do that programmatically. Is there something that I'm missing in setting up the application/window? This is really basic code that shows the main points (or at least what I believe to be the main points for interacting with PyGUI). Please let me know if there's more clarification needed. Thanks for your time. jason ____________________________________________________________ The New "Skinny" Fruit How This Strange 62-Cent African Fruit Is Making Americans Skinny. http://thirdpartyoffers.juno.com/TGL3131/4f6decbd5129a2ea95b5st05duc -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.ewing at canterbury.ac.nz Sun Mar 25 05:56:59 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Sun, 25 Mar 2012 16:56:59 +1300 Subject: [Pygui] Windows not being refreshed In-Reply-To: <20120324.104711.5575.0@webmail-beta02.dca.untd.com> References: <20120324.104711.5575.0@webmail-beta02.dca.untd.com> Message-ID: <4F6E978B.6080600@canterbury.ac.nz> jkamph at juno.com wrote: > When I give a new sub frame (or any other GUI object) in to the main > frame, all of the text of both objects are drawn in the main window. If > I hide the window and bring it back to the front, it'll be re-drawn, but > I can't seem to find where to do that programmatically. Is there > something that I'm missing in setting up the application/window? Are you talking about user-defined views (derived from View) or built-in components (buttons, labels, text fields, etc)? To refresh a user-defined view, you call its invalidate() or invalidate_rect() method. You shouldn't need to explicitly tell built-in objects to refresh, they should do it themselves automatically whenever needed. Do you have something that isn't refreshing when you think it should? Can you post a complete example? -- Greg From jkamph at juno.com Tue Mar 27 07:46:00 2012 From: jkamph at juno.com (jkamph at juno.com) Date: Tue, 27 Mar 2012 05:46:00 GMT Subject: [Pygui] Windows not being refreshed Message-ID: <20120327.004600.25860.0@webmail-beta03.dca.untd.com> Greg - Thanks for the response. Initially, I had everything subclassed (MyApp( Application ) creating MyWindow( Window ) containing a provided Frame containing a MyFrame( Frame ) containing a provided Grid. As an experiment, I changed things so that each class just creates one of the built-in object and provides a method for retrieving the built in Window/Frame. I left MyApp as a subclass of Application so that I would still have someone able to handle button events. However, I'm still seeing the same behavior when I scroll through the list, namely, not having anything removed from the display when something new is supposed to be drawn on it. I feel as though I'm completely missing something fundamental. With this sort of setup, when I click to scroll down, am I expected to have an overridden method that will be invoked? At what level will one of my object be called first? What am I expected to do with that call? I've tried creating a draw method (that is invoked when I try to scroll), but I'm at a bit of a loss as to what I'm supposed to do with the provided canvas and rectangle. Any help or pointing to the pertinent documentation is appreciated. Thanks in advance. jason ---------- Original Message ---------- From: Greg Ewing To: "jkamph at juno.com" Cc: pygui at python.org Subject: Re: [Pygui] Windows not being refreshed Date: Sun, 25 Mar 2012 16:56:59 +1300 jkamph at juno.com wrote: > When I give a new sub frame (or any other GUI object) in to the main > frame, all of the text of both objects are drawn in the main window. If > I hide the window and bring it back to the front, it'll be re-drawn, but > I can't seem to find where to do that programmatically. Is there > something that I'm missing in setting up the application/window? Are you talking about user-defined views (derived from View) or built-in components (buttons, labels, text fields, etc)? To refresh a user-defined view, you call its invalidate() or invalidate_rect() method. You shouldn't need to explicitly tell built-in objects to refresh, they should do it themselves automatically whenever needed. Do you have something that isn't refreshing when you think it should? Can you post a complete example? -- Greg ____________________________________________________________ 53 Year Old Mom Looks 33 The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried http://thirdpartyoffers.juno.com/TGL3131/4f7154841dc2a2fcfcecst06duc -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.ewing at canterbury.ac.nz Tue Mar 27 11:52:52 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Tue, 27 Mar 2012 22:52:52 +1300 Subject: [Pygui] Windows not being refreshed In-Reply-To: <20120327.004600.25860.0@webmail-beta03.dca.untd.com> References: <20120327.004600.25860.0@webmail-beta03.dca.untd.com> Message-ID: <4F718DF4.6010603@canterbury.ac.nz> jkamph at juno.com wrote: > Initially, I had everything subclassed (MyApp( Application ) creating > MyWindow( Window ) containing a provided Frame containing a MyFrame( > Frame ) containing a provided Grid. As an experiment, I changed things > so that each class just creates one of the built-in object and provides > a method for retrieving the built in Window/Frame. Sorry, but I can't make any sense of that. Can you send me some code? I'm still not getting a clear idea of what you're doing. -- Greg From jkamph at juno.com Thu Mar 29 13:13:00 2012 From: jkamph at juno.com (jkamph at juno.com) Date: Thu, 29 Mar 2012 11:13:00 GMT Subject: [Pygui] Windows not being refreshed Message-ID: <20120329.061300.5261.0@webmail-beta02.dca.untd.com> Greg - Sorry for the delay in getting back to you. Here are some images of my GUI before scrolling and after. You can seen the "blurring" that's occurring after attempting to scroll. I've also included some of my source code that is related to the GUI. This won't be workable code for you since I pulled out a bunch of the things not directly related to the GUI. If there are more questions or clarifications needed, please let me know. Thanks for your help. jason ---------- Original Message ---------- From: Greg Ewing To: "jkamph at juno.com" Cc: pygui at python.org Subject: Re: [Pygui] Windows not being refreshed Date: Tue, 27 Mar 2012 22:52:52 +1300 jkamph at juno.com wrote: > Initially, I had everything subclassed (MyApp( Application ) creating > MyWindow( Window ) containing a provided Frame containing a MyFrame( > Frame ) containing a provided Grid. As an experiment, I changed things > so that each class just creates one of the built-in object and provides > a method for retrieving the built in Window/Frame. Sorry, but I can't make any sense of that. Can you send me some code? I'm still not getting a clear idea of what you're doing. -- Greg ____________________________________________________________ 53 Year Old Mom Looks 33 The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried http://thirdpartyoffers.juno.com/TGL3131/4f744421d501e30d9c93st04duc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: player_frame.py Type: application/octet-stream Size: 1867 bytes Desc: player_frame.py URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: main_application.py Type: application/octet-stream Size: 868 bytes Desc: main_application.py URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: obscure_main_gui.py Type: application/octet-stream Size: 6217 bytes Desc: obscure_main_gui.py URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: obscure_reference_main.py Type: application/octet-stream Size: 3015 bytes Desc: obscure_reference_main.py URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pre_scroll.JPG Type: image/jpeg Size: 35691 bytes Desc: pre_scroll.JPG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: post_scroll.JPG Type: image/jpeg Size: 43790 bytes Desc: post_scroll.JPG URL: