Send wxpython-users mailing list submissions to
wxpython-users@lists.wxwidgets.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
or, via email, send a message with subject or body 'help' to
wxpython-users-request@lists.wxwidgets.org
You can reach the person managing the list at
wxpython-users-owner@lists.wxwidgets.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of wxpython-users digest..."
Today's Topics:
1. Re: How to use wxPython documentation (Werner F. Bruhin)
2. AArgh Re: [wxPython-users] GTK Frame Iconize (Paul Sijben)
3. Re: How to use wxPython documentation (Andrea Gavana)
4. Re: How to use wxPython documentation (Werner F. Bruhin)
5. Inheritance problem.. maybe? (Dom)
6. Re: Inheritance problem.. maybe? (Cody Precord)
7. Re: How to use wxPython documentation (Andrea Gavana)
···
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: wxpython-users-request@lists.wxwidgets.org
Date: Wed, 11 Mar 2009 07:20:48
To: <wxpython-users@lists.wxwidgets.org>
Subject: wxpython-users Digest, Vol 13, Issue 46
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Mar 2009 11:23:35 +0100
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] How to use wxPython documentation
To: wxpython-users@lists.wxwidgets.org
Message-ID: <49B79127.9040908@free.fr>
Content-Type: text/plain; charset=UTF-8; format=flowed
David,
David Lyon wrote:
...
I am not complaining - just providing feedback.
1) Fix the links on the wxPython main documentation
2) Get all the C++ out of the wxPython documentation
3) Get all the main classes (~50), properly documented
4) Get code examples for #3
5) Revise and update existing documentation
There was some discussion going on using Sphinx (see Andrea's version:
http://xoomer.virgilio.it/infinity77/wxPython/) to generate the
documentation - but I do not know what the final outcome/decision was.
The little I know about Sphinx is that it should allow for having code
examples in the doc - maybe this could even be linked in/to the wxPython
demo as the source for the code examples?
Werner
------------------------------
Message: 2
Date: Wed, 11 Mar 2009 11:41:26 +0100
From: Paul Sijben <sijben@eemvalley.com>
Subject: AArgh Re: [wxPython-users] GTK Frame Iconize
To: wxpython-users@lists.wxwidgets.org
Message-ID: <49B79556.2040400@eemvalley.com>
Content-Type: text/plain; charset="windows-1252"
I got a successrate of 50% now. Tried 4 linux machines all Ubuntu GTK 2
correctly handle Izonize and 2 ignore it, the last one I checked is
8.10, freshly installed and updated and it failed
Paul Sijben wrote:
Mike Driscoll wrote:
=
=
=
When I run that code on Ubuntu 8.10, it starts out with the program
minimized and then it comes to the front. I'm using Python 2.5,
wxPython 2.8.9.2.
=
weird I'll check on my other linux system. This system is 8.04.
Maybe it is an interaction with the desktop effects (compiz)
=
-------------------
Mike DriscollBlog: http://blog.pythonlibrary.org
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
=
=
-- =
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200903=
11/8d5638e3/attachment-0001.htm
------------------------------
Message: 3
Date: Wed, 11 Mar 2009 11:18:45 +0000
From: Andrea Gavana <andrea.gavana@gmail.com>
Subject: Re: [wxpython-users] How to use wxPython documentation
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<d5ff27200903110418m7967c8adm9e7985b0655aaeab@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi Werner & All,
On Wed, Mar 11, 2009 at 10:23 AM, Werner F. Bruhin wrote:
David,
David Lyon wrote:
...
I am not complaining - just providing feedback.
1) Fix the links on the wxPython main documentation
2) Get all the C++ out of the wxPython documentation
3) Get all the main classes (~50), properly documented
4) Get code examples for #3
5) Revise and update existing documentationThere was some discussion going on using Sphinx (see Andrea's version:
http://xoomer.virgilio.it/infinity77/wxPython/) to generate the
documentation - but I do not know what the final outcome/decision was.The little I know about Sphinx is that it should allow for having code
examples in the doc - maybe this could even be linked in/to the wxPython
demo as the source for the code examples?
There already are some example of code in my version of the
documentation, see for example:
http://xoomer.virgilio.it/infinity77/wxPython/animate/wx.animate.html
http://xoomer.virgilio.it/infinity77/wxPython/grid/wx.grid.html
http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.CollapsiblePane.html
And many more...
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
------------------------------
Message: 4
Date: Wed, 11 Mar 2009 13:20:23 +0100
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] How to use wxPython documentation
To: wxpython-users@lists.wxwidgets.org
Message-ID: <49B7AC87.8030209@free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Andrea,
Andrea Gavana wrote:
Hi Werner & All,
On Wed, Mar 11, 2009 at 10:23 AM, Werner F. Bruhin wrote:
David,
David Lyon wrote:
...
I am not complaining - just providing feedback.
1) Fix the links on the wxPython main documentation
2) Get all the C++ out of the wxPython documentation
3) Get all the main classes (~50), properly documented
4) Get code examples for #3
5) Revise and update existing documentation
There was some discussion going on using Sphinx (see Andrea's version:
http://xoomer.virgilio.it/infinity77/wxPython/) to generate the
documentation - but I do not know what the final outcome/decision was.The little I know about Sphinx is that it should allow for having code
examples in the doc - maybe this could even be linked in/to the wxPython
demo as the source for the code examples?
There already are some example of code in my version of the
documentation, see for example:http://xoomer.virgilio.it/infinity77/wxPython/animate/wx.animate.html
http://xoomer.virgilio.it/infinity77/wxPython/grid/wx.grid.html
http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.CollapsiblePane.html
Could the code sample come from the wxPython demo instead of having it
within the .rst file? Looking at the source it looks like it is
directly from the .rst file.
I also like the Control Appearance stuff directly in the doc.
Werner
------------------------------
Message: 5
Date: Wed, 11 Mar 2009 13:42:46 +0000
From: Dom <dom@reality-debug.co.uk>
Subject: [wxpython-users] Inheritance problem.. maybe?
To: wxpython-users@lists.wxwidgets.org
Message-ID: <46221A79-DC37-4740-9CE4-3FCC5FE558E9@reality-debug.co.uk>
Content-Type: text/plain; charset="us-ascii"
Hi-
I posted here the other day and I received a great reply that helped
with a bit of the mindset for dealing with wxpython, I've got one more
problem though and I assume its more to do with my (flawed)
understanding of inheritance:
import wx
from time import time
import os
from fileLocator import *
app = wx.App(redirect=False)
class Frame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="myGuts", size=(1125,675),
style=wx.DEFAULT_FRAME_STYLE)
self.panel = wx.Panel(self, wx.ID_ANY)
self.panel.SetBackgroundColour('black')
shooter = wx.Button(self.panel, -1, "shoot", pos=(300,500))
quitButton = wx.Button(self.panel, -1, "quit", pos=(300,520))
addImageButton = wx.Button(self.panel, -1, "add image", pos=(300,540))
self.Bind(wx.EVT_BUTTON, self.OnShoot, shooter)
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
self.Bind(wx.EVT_BUTTON, self.OnAddImage, addImageButton)
def OnShoot(self, event):
mainShooter = ScreenShooter()
print(mainShooter.currentTimeFile)
def OnAddImage(self, event):
AddShot = AddImage("moo")
def OnCloseWindow(self, event):
self.Destroy()
class MyGuts(wx.App):
def OnInit(self):
self.frame = Frame()
self.frame.Show()
self.frame.CentreOnScreen()
return True
class ScreenShooter():
""" takes a screengrab of the screen (on a osx system) and saves to
disc with a unix timestamp """
def __init__(self):
self.fileLocation = fileLocation()
currentTimeFile = time()
os.system(('screencapture -x ' + str(currentTimeFile) + '.png ') +
self.fileLocation())
class AddImage(Frame):
def __init__(self, timeStamp):
image = wx.Image((str(timeStamp) + '.png'), wx.BITMAP_TYPE_PNG)
w, h = image.GetWidth(), image.GetHeight()
scaledImage = image.Scale(w*.1, h*.1)
temp = scaledImage.ConvertToBitmap()
self.bmp = wx.StaticBitmap(Frame.__init__.panel, bitmap=temp,
pos=(10, 10))
def main():
app = MyGuts()
app.MainLoop()
if __name__ == '__main__':
main()
any ideas why my AddImage.__init__ function can't access the
Frame.panel object even though I've inherited from the Frame class.
And any ideas why my quit button won't work?
Many many thanks!
dom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2429 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20090311/da765a7b/smime-0001.bin
------------------------------
Message: 6
Date: Wed, 11 Mar 2009 08:53:25 -0500
From: Cody Precord <codyprecord@gmail.com>
Subject: Re: [wxpython-users] Inheritance problem.. maybe?
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<d1e8bd910903110653w258db4e7o156a848b96450797@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello,
On Wed, Mar 11, 2009 at 8:42 AM, Dom <dom@reality-debug.co.uk> wrote:
any ideas why my AddImage.__init__ function can't access the Frame.panel
object even though I've inherited from the Frame class. And any ideas why=
my
quit button won't work?
1) Because you didn't call the super classes __init__ method. (i.e
Frame.__init__) in your subclasses __init__.
2) Because your quit button will fire a BUTTON event not a CLOSE event.
Cody
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200903=
11/0359dd44/attachment-0001.htm
------------------------------
Message: 7
Date: Wed, 11 Mar 2009 14:22:49 +0000
From: Andrea Gavana <andrea.gavana@gmail.com>
Subject: Re: [wxpython-users] How to use wxPython documentation
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<d5ff27200903110722x2676d901y74005d107a2d2661@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi Werner & All,
On Wed, Mar 11, 2009 at 12:20 PM, Werner F. Bruhin wrote:
Andrea,
Andrea Gavana wrote:
There already are some example of code in my version of the
documentation, see for example:http://xoomer.virgilio.it/infinity77/wxPython/animate/wx.animate.html
http://xoomer.virgilio.it/infinity77/wxPython/grid/wx.grid.htmlhttp://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.CollapsiblePane.html
Could the code sample come from the wxPython demo instead of having it
within the .rst file? Looking at the source it looks like it is directly
from the .rst file.
This is because the way the old wxPython documentation was. But if you
can include the sample code in the docstrings, Sphinx will do
everything by itself. Example:
def MyMethod(self, dc, rect):
""""
Some useful docstrings.
**Parameters:**
* `dc`: the client dc
* `rect`: the window rect
Example::
self.MyMethod(dc, rect)
self.DrawSomething(dc)
"""
Notice the 2 ":" after the word "Example". The 2 ":" tell Sphinx that
what follows is Python code and it will automagically output the
sample in the docs. It's not that hard to parse the wxPython demo and
include the samples we want in the docstrings.
I also like the Control Appearance stuff directly in the doc.
Yes, this is a big plus if we can generate enough "Control
Appearances" for almost all the widgets on all platforms.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
End of wxpython-users Digest, Vol 13, Issue 46
**********************************************