boa-constructor-users Mailing List for Boa Constructor - wxPython GUI Builder (Page 136)
Status: Beta
Brought to you by:
riaan
You can subscribe to this list here.
2000 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(4) |
May
(17) |
Jun
(14) |
Jul
(18) |
Aug
(3) |
Sep
(30) |
Oct
(16) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(19) |
Feb
(10) |
Mar
(4) |
Apr
(6) |
May
(27) |
Jun
(37) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(4) |
Nov
(6) |
Dec
(12) |
2002 |
Jan
(27) |
Feb
(22) |
Mar
(48) |
Apr
(21) |
May
(20) |
Jun
(6) |
Jul
(33) |
Aug
(34) |
Sep
(9) |
Oct
(41) |
Nov
(14) |
Dec
(35) |
2003 |
Jan
(75) |
Feb
(75) |
Mar
(59) |
Apr
(22) |
May
(18) |
Jun
(36) |
Jul
(50) |
Aug
(106) |
Sep
(71) |
Oct
(63) |
Nov
(81) |
Dec
(58) |
2004 |
Jan
(48) |
Feb
(42) |
Mar
(57) |
Apr
(64) |
May
(81) |
Jun
(30) |
Jul
(15) |
Aug
(39) |
Sep
(56) |
Oct
(61) |
Nov
(27) |
Dec
(20) |
2005 |
Jan
(74) |
Feb
(62) |
Mar
(237) |
Apr
(83) |
May
(138) |
Jun
(132) |
Jul
(61) |
Aug
(51) |
Sep
(17) |
Oct
(22) |
Nov
(59) |
Dec
(32) |
2006 |
Jan
(7) |
Feb
(7) |
Mar
(24) |
Apr
(15) |
May
(19) |
Jun
(46) |
Jul
(26) |
Aug
(51) |
Sep
(35) |
Oct
(90) |
Nov
(27) |
Dec
(23) |
2007 |
Jan
(22) |
Feb
(17) |
Mar
(14) |
Apr
(28) |
May
(38) |
Jun
(44) |
Jul
(34) |
Aug
(40) |
Sep
(29) |
Oct
(44) |
Nov
(16) |
Dec
(15) |
2008 |
Jan
(12) |
Feb
(37) |
Mar
(48) |
Apr
(35) |
May
(37) |
Jun
(32) |
Jul
(30) |
Aug
(28) |
Sep
(33) |
Oct
(19) |
Nov
(44) |
Dec
(45) |
2009 |
Jan
(30) |
Feb
(16) |
Mar
(48) |
Apr
(56) |
May
(100) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
(3) |
2010 |
Jan
(8) |
Feb
(3) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(6) |
Nov
(22) |
Dec
|
2011 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Riaan B. <riaan@e.co.za> - 2002-07-06 01:13:45
|
Hi John, John Boik wrote: > > Excellent Riaan. Thanks so much for the help. It actually did read > Docs/boa/apphelp/MixingSource.html (several times), its just that I didnt > understand it. Feel free to mail me suggestions on how to make it more comprehensible. > But I am learning fast and your last post helped quite a > bit. Now my skeleton application works...sort of. I can now open it with > the Inspector, but unfortunately the new code has introduced a new problem. > It gives an error after execution, suggesting that I have memeory leaks. Do > you know what would cause this? You have to destroy the wxDiagram object yourself. Please see the wxPython ogl demo and the Boa source code (OGLViews.py) for examples of this. > Im sure you are a very busy man and have other things to do than answer my > questions, but I really do appreciate the help getting started. Just let me > know if I am wearing out my welcome. Once I get some basics down, I think I > will be fine. As a guideline, I would prefer to help with Boa spesific issues. > > Best, > John Cheers, Riaan. |
From: John B. <joh...@om...> - 2002-07-06 00:53:50
|
Excellent Riaan. Thanks so much for the help. It actually did read Docs/boa/apphelp/MixingSource.html (several times), its just that I didnt understand it. But I am learning fast and your last post helped quite a bit. Now my skeleton application works...sort of. I can now open it with the Inspector, but unfortunately the new code has introduced a new problem. It gives an error after execution, suggesting that I have memeory leaks. Do you know what would cause this? 7:33:33 PM: There were memory leaks. 7:33:33 PM: ----- Memory dump ----- 7:33:33 PM: wxDiagram at $1183298, size 32 7:33:33 PM: wxObject at $11A2258, size 28 7:33:33 PM: 7:33:33 PM: 7:33:33 PM: ----- Memory statistics ----- 7:33:33 PM: 1 objects of class wxObject, total size 28 7:33:33 PM: 1 objects of class wxDiagram, total size 32 7:33:33 PM: 7:33:33 PM: Number of object items: 2 7:33:33 PM: Number of non-object items: 0 7:33:33 PM: Total allocated size: 60 Im sure you are a very busy man and have other things to do than answer my questions, but I really do appreciate the help getting started. Just let me know if I am wearing out my welcome. Once I get some basics down, I think I will be fine. Best, John John Boik Oregon Medical Press www.ompress.com joh...@om... -----Original Message----- From: Riaan Booysen [mailto:riaan@e.co.za] Sent: Friday, July 05, 2002 7:16 PM To: joh...@om... Cc: Boa, Subject: Re: [Boa Constr] 2 problems-- wxMenu and python crashing Hello John, John Boik wrote: > > Thanks Riaan. > I did go to the web site and made the suggsted change in the > UtilCompanions.py file. Now I can add a menu. It works great. Cool! > I did try your suggestion on the initialization lines for the canvas. I had > to change them a bit to get it to work [see below...wxFrame1 (which is self) > did not have an attribute "diagram"]. Im not sure if I can draw yet, but > the application does execute at least. No errors. The problem is though > that by adding the new code into the init section, Boa no longer will allow > me to use the Frame Designer. Please follow the instructions that I posted previously, your code should then be equivalent to this: def __init__(self, parent): self._init_ctrls(parent) self.diagram = wxDiagram() self.diagram.SetCanvas(self.scrolledWindow1) self.scrolledWindow1.SetDiagram(self.diagram) As the Boa application help says, you should not add code to the methods that Boa generates and maintains; the _init_* methods. In the help you are also encouraged to make your the changes in the __init__ method after the self._init_ctrls call. > If I wanted to fix the crash on exit problem Add this snippet of code to the bottom of Preferences.py try: sys._wxApp_Cleanup = wx.__cleanMeUp except: pass to fix it. > I could upgrade to the new CVS > version, but Im not sure how to do that. I went to the CVS site and I see I > can download several different modules, but which ones do I want and how do > I install them in Windows? Do I just copy them over the old folders? Learning to use CVS is of value to any developer IMO. Boa is not released that regularly, so if you need support for the latest wxPython or new features/fixes then it's up to you to learn CVS. There's plenty of help on the web and in the Boa application help. I do suggest leaving it until you are more familiar with everything. > I could also downgrade to Python 2.1, but Im wondering if I would have to > uninstall 2.2 and wxWindows and Boa etc, since they are all in the same > Python22 directory. You can have more than one Python installation at a time, but as I said, this is a last option. Boa 0.1.0 was developed on wxPython 2.3.2 and Python 2.1, so that is where it will run the best. That said, you now have the major hickups of 0.1.0 patched so you should be fine. > Again, pardon my lack of experience...with a little help I will learn fast. Best advice I can give would be to make more use of the SourceForge tracker and the Boa application help. (esp. Docs/boa/apphelp/MixingSource.html). Learning Python/wxPython should be fun, so enjoy it! > > Best, > John Cheers, Riaan. |
From: Riaan B. <riaan@e.co.za> - 2002-07-06 00:13:45
|
Hello John, John Boik wrote: > > Thanks Riaan. > I did go to the web site and made the suggsted change in the > UtilCompanions.py file. Now I can add a menu. It works great. Cool! > I did try your suggestion on the initialization lines for the canvas. I had > to change them a bit to get it to work [see below...wxFrame1 (which is self) > did not have an attribute "diagram"]. Im not sure if I can draw yet, but > the application does execute at least. No errors. The problem is though > that by adding the new code into the init section, Boa no longer will allow > me to use the Frame Designer. Please follow the instructions that I posted previously, your code should then be equivalent to this: def __init__(self, parent): self._init_ctrls(parent) self.diagram = wxDiagram() self.diagram.SetCanvas(self.scrolledWindow1) self.scrolledWindow1.SetDiagram(self.diagram) As the Boa application help says, you should not add code to the methods that Boa generates and maintains; the _init_* methods. In the help you are also encouraged to make your the changes in the __init__ method after the self._init_ctrls call. > If I wanted to fix the crash on exit problem Add this snippet of code to the bottom of Preferences.py try: sys._wxApp_Cleanup = wx.__cleanMeUp except: pass to fix it. > I could upgrade to the new CVS > version, but Im not sure how to do that. I went to the CVS site and I see I > can download several different modules, but which ones do I want and how do > I install them in Windows? Do I just copy them over the old folders? Learning to use CVS is of value to any developer IMO. Boa is not released that regularly, so if you need support for the latest wxPython or new features/fixes then it's up to you to learn CVS. There's plenty of help on the web and in the Boa application help. I do suggest leaving it until you are more familiar with everything. > I could also downgrade to Python 2.1, but Im wondering if I would have to > uninstall 2.2 and wxWindows and Boa etc, since they are all in the same > Python22 directory. You can have more than one Python installation at a time, but as I said, this is a last option. Boa 0.1.0 was developed on wxPython 2.3.2 and Python 2.1, so that is where it will run the best. That said, you now have the major hickups of 0.1.0 patched so you should be fine. > Again, pardon my lack of experience...with a little help I will learn fast. Best advice I can give would be to make more use of the SourceForge tracker and the Boa application help. (esp. Docs/boa/apphelp/MixingSource.html). Learning Python/wxPython should be fun, so enjoy it! > > Best, > John Cheers, Riaan. |
From: John B. <joh...@om...> - 2002-07-05 22:34:07
|
Thanks Riaan. I did go to the web site and made the suggsted change in the UtilCompanions.py file. Now I can add a menu. It works great. I did try your suggestion on the initialization lines for the canvas. I had to change them a bit to get it to work [see below...wxFrame1 (which is self) did not have an attribute "diagram"]. Im not sure if I can draw yet, but the application does execute at least. No errors. The problem is though that by adding the new code into the init section, Boa no longer will allow me to use the Frame Designer. It tells me there are "too many sections". Is there a way around this? It kind of defeats the purpose if I can't use the graphical layout abilities of Boa. self.scrolledWindow1.diagram = wxDiagram() self.scrolledWindow1.diagram.SetCanvas(self.scrolledWindow1) self.scrolledWindow1.SetDiagram(self.scrolledWindow1.diagram) I had to place the above code below where scrolledWindow1 was initialized, I see, or else it didnt know what scrolledWindow1 was. If I wanted to fix the crash on exit problem I could upgrade to the new CVS version, but Im not sure how to do that. I went to the CVS site and I see I can download several different modules, but which ones do I want and how do I install them in Windows? Do I just copy them over the old folders? I could also downgrade to Python 2.1, but Im wondering if I would have to uninstall 2.2 and wxWindows and Boa etc, since they are all in the same Python22 directory. Again, pardon my lack of experience...with a little help I will learn fast. Best, John |
From: Riaan B. <riaan@e.co.za> - 2002-07-05 20:57:02
|
Hi John, John Boik wrote: > > Hello Riaan, John, and all. The wraparound for the wxShapeCanvas widget > still seems to have one problem in it. I created the custom canvas, as we > discussed, but it does not seem to handle mouse events. Using wxBell() as a > test, I can get a mousedown event to ring the bell on a regular wxPanel, but > on the new canvas it causes python to crash. No message is given, just a > python crash. The applicable code is: <snipped> The problem is that you are using a wxShapeCanvas that has not been initialised properly. When it's initialised properly, it behaves and does not crash. Add the following code to your __init__ method beneath _init_ctrls: self.diagram = wxDiagram() self.diagram.SetCanvas(self.scrolledWindow1) self.scrolledWindow1.SetDiagram(self.diagram) I see you almost got this in the next mail you sent, close ;) Cheers, Riaan. |
From: Riaan B. <riaan@e.co.za> - 2002-07-05 20:56:33
|
Hi John, These problems are fixed in CVS. The solutions are described in the forums and bug tracker. As a last resort you may switch to Python 2.1. BTW, the crash at shutdown happens after eveything has closed and destroyed so it won't cause data loss. Riaan. |
From: John B. <joh...@om...> - 2002-07-05 20:05:18
|
Hi. I hope I am not using up all my good graces by asking too many questions here (any suggestions on etiquite would be appreciated). But I have one commont and one more question. The comment is on my last post about Python crashing after I click a mouse event in my created wxShapeCanvas. Actually, it doesnt even need to be a mouse event--even with all events removed, Python crashes whenever I click anywhere in the canvas. Second...and this is real simple...I am a real newbie...how do I make a panel active without the mouse? I would like to instruct my program to draw a line on the canvas (named "scrolledWindow1"), but I cant figure out how to make the following lines work: self.scrolledWindow1.diagram=wxDiagram() self.SetDiagram(self.diagram) self.diagram.SetCanvas(self) ... I got these and several related lines from the wxOGL demo. But when I run it Boa tells me that self is not defined. Omitting the "self." part or changing it to "wxFrame1." (the parent, I assume) does not work either. How do you instruct wxWindows to do something on a desired frame or panel without using mouse events? I thought that since I cannot click on the canvas without Python crashing, maybe I could hard wire in some code to draw a test line. Cheers, John John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: John B. <joh...@om...> - 2002-07-05 18:41:29
|
Hello Riaan, John, and all. The wraparound for the wxShapeCanvas widget still seems to have one problem in it. I created the custom canvas, as we discussed, but it does not seem to handle mouse events. Using wxBell() as a test, I can get a mousedown event to ring the bell on a regular wxPanel, but on the new canvas it causes python to crash. No message is given, just a python crash. The applicable code is: class wxBoaShapeCanvas(wxShapeCanvas): def __init__(self, parent=NULL, id=-1, pos=wxPoint(224, 16), size=wxSize(200, 304), style=wxBORDER, name='shapecanvas'): wxShapeCanvas.__init__(self, parent, id, pos, size, style) self.SetName(name) ------------------------------- class wxFrame1(wxFrame): _custom_classes = {'wxScrolledWindow': ['wxBoaShapeCanvas']} def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_WXFRAME1, name = '', parent = prnt, pos = wxPoint(353, 110), size = wxSize(484, 424), style = wxDEFAULT_FRAME_STYLE, title = 'wxFrame1') self._init_utils() self.SetClientSize(wxSize(476, 397)) self.panel1 = wxPanel(id = wxID_WXFRAME1PANEL1, name = 'panel1', parent = self, pos = wxPoint(8, 0), size = wxSize(176, 384), style = wxTAB_TRAVERSAL) self.panel1.SetForegroundColour(wxColour(255, 128, 255)) self.panel1.SetBackgroundColour(wxColour(0, 255, 0)) EVT_LEFT_DOWN(self.panel1, self.OnPanel1LeftDown) self.scrolledWindow1 = wxBoaShapeCanvas(id = wxID_WXFRAME1SCROLLEDWINDOW1, name = 'scrolledWindow1', parent = self, pos = wxPoint(216, 16), size = wxSize(232, 368), style = wxTAB_TRAVERSAL) self.scrolledWindow1.SetForegroundColour(wxColour(128, 0, 255)) self.scrolledWindow1.SetBackgroundColour(wxColour(0, 0, 255)) EVT_LEFT_DOWN(self.scrolledWindow1, self.OnScrolledwindow1LeftDown) ----------------------------------- def OnScrolledwindow1LeftDown(self, event): wxBell() ------------------------------ Actually, the bell goes off and then Python crashes. Again, I am using Win XP. Any ideas as to why this might be occuring? I am stumped. I can, however, place a static bitmap on the canvas. That seems to work just fine. John John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: John B. <joh...@om...> - 2002-07-05 05:09:47
|
I figured out an answer to my question on rotating bitmaps...never mind. And I was wrong about wxOGL not having a method to paste bitmaps. Cheers. John John Boik Oregon Medical Press www.ompress.com joh...@om... -----Original Message----- From: John Boik [mailto:joh...@om...] Sent: Thursday, July 04, 2002 9:21 PM To: Riaan Booysen Cc: Boa, Subject: RE: [Boa Constr] newbie question -- using Boa for creating a drawing canvas Thanks Riaan. I had to modify your suggestion a bit to get it working. Here is what I used: class wxBoaShapeCanvas(wxShapeCanvas): def __init__(self, parent=NULL, id=-1, pos=wxPoint(224, 16), size=wxSize(200, 304), style=wxBORDER, name='shapecanvas'): wxShapeCanvas.__init__(self, parent, id, pos, size, style) self.SetName(name) That seems to work OK. I have another question though. I would like to place a bitmap (or gif if I could) on the canvas and then be able to rotate it when I want. I could use the static bitmap control in Boa, but that references a filename for the bitmap. So if I want to rotate it (using image.Rotate() from PIL), I would have to open the file, rotate it, save it to a temp file, and then open it again with the bitmap control. Is there a more efficient way to do this? Unfortunately, wxShapeCanvas does not have methods to paste a bitmap to the canvas. I am very new (to OOP, Python, Boa), so maybe I am missing something here that would make the job easy. Any suggestions are appreciated. John John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: John B. <joh...@om...> - 2002-07-05 02:21:12
|
Thanks Riaan. I had to modify your suggestion a bit to get it working. Here is what I used: class wxBoaShapeCanvas(wxShapeCanvas): def __init__(self, parent=NULL, id=-1, pos=wxPoint(224, 16), size=wxSize(200, 304), style=wxBORDER, name='shapecanvas'): wxShapeCanvas.__init__(self, parent, id, pos, size, style) self.SetName(name) That seems to work OK. I have another question though. I would like to place a bitmap (or gif if I could) on the canvas and then be able to rotate it when I want. I could use the static bitmap control in Boa, but that references a filename for the bitmap. So if I want to rotate it (using image.Rotate() from PIL), I would have to open the file, rotate it, save it to a temp file, and then open it again with the bitmap control. Is there a more efficient way to do this? Unfortunately, wxShapeCanvas does not have methods to paste a bitmap to the canvas. I am very new (to OOP, Python, Boa), so maybe I am missing something here that would make the job easy. Any suggestions are appreciated. John John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: John B. <joh...@om...> - 2002-07-05 02:05:06
|
Hi: I just downladed and installed the latest version of Python, Boa and related files, and I am having a couple of problems that were mentioned perviously in the sourceforge open discussion. I run Windows XP, by the way. The first problem is with adding menu items and it also occurs when adding wxImageLists. It is the problem Steve has written about below: ------------------------------------------------------ By: holdenweb ( Steve Holden ) Menu items cannot be added/edited 2002-04-22 15:38 When I try to add a Menu widget to the Data tab of a wxFrame I see the following error traceback: TypeError: unbound method properties() must be called with CollectionDTC instanc e as first argument (got MenuDTC instance instead) ....[and so on] [the reply by Keven:] By: kevin_gill ( Kevin Gill ) RE: Menu items cannot be added/edited 2002-04-23 02:50 I had these problems when I installed beta1. It appears that there was global changes to some objects to differenciate between design time and run time versions, and some lines got left out. I include them below. Companions/Companions.py line 1131, changed ContainerDTC to Window DTC def persistProp(self, name, setterName, value): if setterName == 'SetImageList': imgList, listType = string.split(value, ',') imgList, listType = string.strip(imgList), string.strip(listType) for prop in self.textPropList: if prop.prop_setter == setterName and prop.params[1] == listType: prop.params = [imgList, listType] return self.textPropList.append(methodparse.PropertyParse( None, self.name, setterName, [imgList, listType], 'SetImageList')) else: #ContainerDTC.persistProp(self, name, setterName, value) WindowDTC.persistProp(self, name, setterName, value) #KG #### Companions/UtilCompanions.py line 220 def properties(self): props = UtilityDTC.properties(self) ### KG ### props.update({'Items': ('NoneRoute', None, None)}) return props ------------------------------------------------------- I do not understand if I too should change these lines of code (maybe it was updated since April). In fact the line numbers Kevin refers to do not seem to be the ones in the code. Anyway, I do not understand what pieces are to be changed and what are to be left alone. Could anyone give some newbie-friendly advice on this? Here is my second problem. It is one that notnameless had as shown below: ------------------------------------------ By: notnameless ( See login name. ) Hmmmm... 2002-05-08 19:57 Whenever I close Boa I get the following error: Python has caused an error in WSMXSW232.DLL. Python will now close. I know this is a wxWindows, or wxPython error and wonder if there is a way to get rid of the error. I am running Win ME. ------------------------------------------ Actually, I do not get the exact message, but Python crashes every time I exit Boa unless I exit it by shutting down the DOS command window. Any suggestions as to how to fix this? John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: Riaan B. <riaan@e.co.za> - 2002-07-04 11:45:16
|
Hi John, John Boik wrote: > > Thanks for the help John. But I see (at least) one more problem. Does > anyone have a suggestion? I can build a canvas class as a derived class of > one of the container classes, maintaining the same initialisation signature > as the container class and then using it as a Custom Class, as suggested, > but it produces errors because the wxShapeCanvas widget that I need to use > does not take "name=..." in its constructor. Because all the other > containers do, they would all produce an error. Short of hand typing the > whole thing in for the widget, does anyone have a suggestion as to how to > get around the "name=..." problem in defining the new constructor? John Bell gave the correct advice, but wxShapeCanvas is unfortunately an exception to convention of supporting a 'name' keyword argument. Just for consistency I wish this could be added to wxWindows, Robin? Personally I think you should do the creation of the wxShapeCanvas manually after the generated code is called in __init__. This is what I always do with the dynamic or non supported elements of any wxFrame. If you do have compelling reasons to want the object (or it's nearest equivalent which is wxScrolledWindow) in the design time environment you may define a small adapter class which just wraps the constructor signature (untested). class wxBoaShapeCanvas(wxShapeCanvas): def __init__(self, parent=None, id=-1, pos=wxDefaultPos, size=wxDefaultSize, style=wxBORDER, name='shapecanvas'): wxShapeCanvas.__init__(parent, id, pos, size, style) self.SetName(name) with _custom_classes = {'wxScrolledWindow': ['wxBoaShapeCanvas']} > John HTH, Riaan. |
From: John B. <joh...@om...> - 2002-07-04 04:54:20
|
Thanks for the help John. But I see (at least) one more problem. Does anyone have a suggestion? I can build a canvas class as a derived class of one of the container classes, maintaining the same initialisation signature as the container class and then using it as a Custom Class, as suggested, but it produces errors because the wxShapeCanvas widget that I need to use does not take "name=..." in its constructor. Because all the other containers do, they would all produce an error. Short of hand typing the whole thing in for the widget, does anyone have a suggestion as to how to get around the "name=..." problem in defining the new constructor? John |
From: John B. <jbe...@ya...> - 2002-07-04 02:30:29
|
Hi John, --- John Boik <joh...@om...> wrote: > Hello: > I am new and hoping to complete an easy (?) project. > In a nutshell, I need > to place a gif pic (a pic of a graph) on a frame, > then draw litle boxes > around points on the graph and collect the > coordinates for the box centers. > Sounds simple enough....but I downloaded Boa and see > that it has no canvas > tab on the Editor window. How does one go about > placing a drawing canvas on > a frame using Boa? I presume that what you mean is that you can't find any form of "Canvas" type control on the Palette. This is not surprising since wxPython has no control of this type. You need to associate a Device Context with the frame and draw to that. There should be an example in the wxPython demo. From a Boa integration point of view your options are either to add the extra code in the __init__ block by hand (along with required event handlers in the module block) or to build a canvas class as a derived class of one of the container classes, maintaining the same initialisation signature as the container class and then use it as a Custom Class (see Boa documentation). John Bell > > Any help is appreciated. John > > John Boik > Oregon Medical Press > www.ompress.com > joh...@om... > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > No, I will not fix your computer. > http://thinkgeek.com/sf > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |
From: John B. <joh...@om...> - 2002-07-03 22:06:48
|
Hello: I am new and hoping to complete an easy (?) project. In a nutshell, I need to place a gif pic (a pic of a graph) on a frame, then draw litle boxes around points on the graph and collect the coordinates for the box centers. Sounds simple enough....but I downloaded Boa and see that it has no canvas tab on the Editor window. How does one go about placing a drawing canvas on a frame using Boa? Any help is appreciated. John John Boik Oregon Medical Press www.ompress.com joh...@om... |
From: Robin S. <Rob...@co...> - 2002-07-03 18:54:50
|
Nevermind. I am having a Monday today. I *thought* I had created a menu and it was really a menubar....<sighs>I need more coffee. > -----Original Message----- > From: Robin Siebler > Sent: Wednesday, July 03, 2002 11:27 AM > To: 'boa...@li...' > Subject: Help!?! Tutorial doesn't work for 0.1.2a > > I just installed 0.1.2a and I am trying to follow the tutorial. However, > it's not working. I'm in section 2.4 and the submenu 'About' that I > created for mnuHelp doesn't *have* the options shown in the Constr pane of > Inspector. Nor does mnuHelp have any events available under the Evts pane > of the Inspector. Am I doing something wrong? > > Robin L. Siebler > Software Test Engineer > Palm > --------------------------------------- > Carl: Throw away your self-pity and come get drunk with us. > |
From: Robin S. <Rob...@co...> - 2002-07-03 18:26:53
|
I just installed 0.1.2a and I am trying to follow the tutorial. However, it's not working. I'm in section 2.4 and the submenu 'About' that I created for mnuHelp doesn't *have* the options shown in the Constr pane of Inspector. Nor does mnuHelp have any events available under the Evts pane of the Inspector. Am I doing something wrong? Robin L. Siebler Software Test Engineer Palm --------------------------------------- Carl: Throw away your self-pity and come get drunk with us. |
From: Robin S. <Rob...@co...> - 2002-07-03 18:07:35
|
I am following the tutorial and I am at node 2.4. It says to set the titles of the menubars to 'File' and 'Help'. I've tried that every way I can think of, but I can't get it to save these values. What am I doing wrong? Robin L. Siebler Software Test Engineer Palm --------------------------------------- Lisa: I'm studying for the math fair. If I win, I'll get a brand new protractor. Homer: Too bad we don't live on a farm. |
From: rboulanger <ro...@bl...> - 2002-07-03 16:31:28
|
It is it worth anyway. Go into the parent directory where boa is currently installed for Example C:\Python22\Lib\site-packages\wxPython\tools then use the following commands: (I assume you have a commandline cvs.exe installed When prompted for a password for anonymous, simply press the Enter key. cvs -d:pserver:ano...@cv...:/cvsroot/boa-constructor login cvs -z3 -d:pserver:ano...@cv...:/cvsroot/boa-constructor co boa You don't need any Compiler. Boa is entirly written in Python, go then to the Boa directory and simply type: python Boa.py. It will be "compiled on the fly" when you start it the first time Regards Robert Boulanger Robin Siebler wrote: >I'm new to Boa and I am using 0.1a. My question is this - Is the CVS version >that much better and how difficult is it to get/build? Ok, that's more than >one question, so here are a few more: We use Perforce at work. Will that >work, or do I need something else, if so, what? Is there a webclient that I >can use so I don't have to install anything? Will it build under .NET? If >not, I would assume that it will under VC++ 6. > >Robin L. Siebler >Software Test Engineer >Palm >--------------------------------------- >[Homer is a limo driver] Homer Simpson: Oh wow, I can't believe my first >passenger is comedy legend Mel Brooks! You know that movie, Young >Frankenstein? Scared the hell out of me! Mel Brooks: Umm, thanks. > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >No, I will not fix your computer. >http://thinkgeek.com/sf >_______________________________________________ >Boa-constructor-users mailing list >Boa...@li... >https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > > > |
From: Robin S. <Rob...@co...> - 2002-07-03 16:17:20
|
I'm new to Boa and I am using 0.1a. My question is this - Is the CVS version that much better and how difficult is it to get/build? Ok, that's more than one question, so here are a few more: We use Perforce at work. Will that work, or do I need something else, if so, what? Is there a webclient that I can use so I don't have to install anything? Will it build under .NET? If not, I would assume that it will under VC++ 6. Robin L. Siebler Software Test Engineer Palm --------------------------------------- [Homer is a limo driver] Homer Simpson: Oh wow, I can't believe my first passenger is comedy legend Mel Brooks! You know that movie, Young Frankenstein? Scared the hell out of me! Mel Brooks: Umm, thanks. |
From: Riaan B. <riaan@e.co.za> - 2002-06-25 07:33:44
|
Hi David, David LeBlanc wrote: > > Hi; > > I've seen posts and other allusions to a tutorial/documentation for boa, but > I'm unable to find it, even doing a CVS checkout from SF. Any pointers would > be appreciated. Yes, this is turning into an FAQ :) I will probably end up moving the docs back into the CVS repository. (Personally, I only want code in the repository) You may get the Tutorial (and the Boa application help) from the 0.1.0 source (or exe) release. > > TIA, > > David LeBlanc > Seattle, WA USA Cheers, Riaan. |
From: David L. <wh...@oz...> - 2002-06-24 21:31:47
|
Hi; I've seen posts and other allusions to a tutorial/documentation for boa, but I'm unable to find it, even doing a CVS checkout from SF. Any pointers would be appreciated. TIA, David LeBlanc Seattle, WA USA |
From: Riaan B. <riaan@e.co.za> - 2002-06-21 12:37:26
|
Hello Géza, "Groma Géza" wrote: > > Using Python-2.2, wxPython-2.3.3pre4 and BOA from CVS (May 30) I found that= > the Debugger does not stop at a breakpoint if it is set in a file other th= > an what it started from. It is illustrated below by a package 'example' con= > taining files example1, example2 and an empty __init__. Setting the breakpo= > int at self.Show() does not stop the Debugger. It works fine if the same co= > de is in a single file. > Any idea? Not really, breakpoints in other modules works fine for me. Are you sure all the files are saved? What happens when you step into (F7) a call to example2? Riaan. |
From: Groma G. <gr...@nu...> - 2002-06-19 08:12:11
|
Using Python-2.2, wxPython-2.3.3pre4 and BOA from CVS (May 30) I found that= the Debugger does not stop at a breakpoint if it is set in a file other th= an what it started from. It is illustrated below by a package 'example' con= taining files example1, example2 and an empty __init__. Setting the breakpo= int at self.Show() does not stop the Debugger. It works fine if the same co= de is in a single file.=0D =0D Any idea?=0D =0D =0D from wxPython.wx import *=0D from example import example2 =0D =0D ##contents of example1:=0D =0D class App(wxApp):=0D def __init__(self, redirect=3D0, filename=3DNone):=0D wxApp.__init__(self, redirect, filename)=0D =0D =0D def OnInit(self):=0D frame =3D example2.TestFrame()=0D self.SetTopWindow(frame)=0D return true=0D =0D app =3D App(1)=0D app.MainLoop()=0D =0D =0D =0D ##contents of example2:=0D =0D from wxPython.wx import *=0D =0D class TestFrame(wxFrame):=0D def __init__(self):=0D wxFrame.__init__(self, None, -1, 'test',=0D style=3DwxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON= _RESIZE)=0D self.Show() =0D =0D =0D Regards,=0D Geza Groma __________________________________ This mail was sent through BRCNet WebAccess |
From: Riaan B. <riaan@e.co.za> - 2002-06-07 08:21:21
|
Hi Ed, Boa 0.1.0 runs best on Python 2.1 and wxPython 2.3.2. The crash-after-exit bug and problems Boa had with Python 2.2 are fixed in the CVS repository. To prevent the crash-after-exit bug, at the following to the bottom of Preferences.py: try: sys._wxApp_Cleanup = wx.__cleanMeUp except: pass Riaan. ed....@nt... wrote: > > Hi, > > After playing aroud with different python versions and setups I've now settled down to > using the following in Windows XP on an Athlon 1800+XP with 512 Megs of Ram. > > Python 2.2.1 > wxPython 2.3.2.1-Py22-Hybrid.exe > Boa-Constructor-0.1.0-alpha.Win32.exe > > Problem: > > Running Boa.py and all is fine until I exit. [I haven't done anything with Boa yet!] > On exit I get the following error message: > > --------------------------------------------------------- > > Python.exe - Application Error > X The instructon at "0x00b576fe" referenced memory at "0x00000004" > The memory could not be "read". > > Click OK to terminate the program > Click on CANCEL to debufg the program > OK CANCEL > > ------------------------------------------------------- > > Any ideas? > > Ed > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users |