boa-constructor-users Mailing List for Boa Constructor - wxPython GUI Builder (Page 145)
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: Warnes, G. R <gre...@gr...> - 2001-09-05 23:55:47
|
Hi, I've just gotten started with Boa and I'm very impressed. I had been trying to use v0.0.5, until I realized that this was way out of date and grabbed the new 0.0.13 from CVS. When I did so, I noticed that the documentation (Doc/*) was not in the current CVS version. Is there a particular reason for this? -Greg LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. |
From: sherlock c. <wr...@cr...> - 2001-09-05 20:58:20
|
Thanx for the advice. I've just installed and run 0.0.13 and now i get a different thing. I can create a new Zope in the Zope folder (under Transport in your explorer tree), but when i click on the new Zope i've just made, i get a pop-up dialog that says: ZOA not found in the Zope root. Install the ZOA Python Method. but when i click "Yes" it errors and doesn't install the ZOA stuff. Also, previously, (in 0.0.12) i was able to right click on the Zope object I create and choose "inspect" from the pop up menu and edit attributes (like username/password). I can no longer see how to do this. So that's a possible source of errors (the fact that it's not using the correct username/pass for my zope site). Thanx again for any attention, and let me know if there's something i can do. Here's the trace from the ZOA install error: E:\usr\boa>python Boa.py Starting Boa Constructor v0.0.13 Setting user preferences creating Palette importing Palette importing extra wxPython libraries importing PropertyEditors importing Companions ZopeLib\DateTime\DateTime.py:90: DeprecationWarning: the regex module is deprecated; please use the re module import sys, os, math, regex, ts_regex, DateTimeZone c:\python21\lib\regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) creating Inspector importing Inspector creating Editor importing Editor importing Models importing Explorers importing Views importing Controllers importing Designer attaching wxPython doc strings showing main frames Traceback (most recent call last): File "Explorers\Explorer.py", line 238, in OnOpen lst = data.openList() File "Explorers\ZopeExplorer.py", line 195, in openList self.properties['passwd'], id = 'ZOA') File "ZopeLib\Client.py", line 345, in call return apply(Function(cp__url,username=cp__username, password=cp__password), (), kw) File "ZopeLib\Client.py", line 226, in __call__ self.handleError(query, ec, em, headers, response) File "ZopeLib\Client.py", line 241, in handleError raise t, RemoteException(t,v,f,l,self.url,query,ec,em,response) AttributeError: <HTML><HEAD><TITLE>Zope</TITLE></HEAD><BODY BGCOLOR="#FFFFFF"> <TABLE BORDER="0" WIDTH="100%"> <TR VAL IGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> <IMG SRC="http://localhost:8080/p_/ZButton" ALT="Zope"> </TD> <TD WIDTH="90 %"> <H2>Zope Error</H2> <P> (File: C:\PROGRA~1\Zale\lib\python\App\Product.py Line: 135) 500 Internal Server Error for http://localhost:8080///manage_addProduct/PythonScripts/manage_addPythonScri pt Traceback (most recent call last): File "Explorers\Explorer.py", line 238, in OnOpen lst = data.openList() File "Explorers\ZopeExplorer.py", line 209, in openList raise 'The ZOA component must be installed' The ZOA component must be installed +-----Original Message----- +From: Riaan Booysen [mailto:riaan@e.co.za] +Sent: Tuesday, September 04, 2001 11:43 PM +To: sherlock costello +Cc: boa...@li... +Subject: Re: [Boa Constr] zope problems + + +Hi Sherlock, I think the problem is that the ZOA python method is not +installed on your Zope. The 0.0.13 version available in CVS auto +installs it. Try it out. + +sherlock costello wrote: +> +> I've got the latest boa from cvs and i'm running zope 2.4.0 -- when i +> try to access my zope from boa, i get the following error: +> +> 13:35:48: Traceback (most recent call +> last): +> 13:35:48: File "Explorers/Explorer.py", line 365, in +> OnSelect +> 13:35:48: +> self.selectTreeItem(item) +> 13:35:48: File "Explorers/Explorer.py", line 343, in +> selectTreeItem +> 13:35:48: self.list.refreshItems(imgs, +> data) +> 13:35:48: File "Explorers/Explorer.py", line 231, in +> refreshItems +> 13:35:48: try: self.items = +> explNode.openList() +> 13:35:48: File "Explorers/ZopeExplorer.py", line 183, in +> openList +> 13:35:48: raise +> Utils.html2txt(error.faultString) +> 13:35:48: Unexpected Zope exception: cannot marshal +> objects +> +> I thought perhaps this was related to my running wxPython 2.3.1, so i +> made the effort to back down to 2.3.0 yet still received the same error. + +Well, 2.3.0 is still the required version (for now) + +> +> ~c +> +> _______________________________________________ +> Boa-constructor-users mailing list +> Boa...@li... +> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users + +-- +Riaan Booysen +___________________________________________________ +Boa Constructor - RAD GUI building IDE for wxPython + http://boa-constructor.sourceforge.net + |
From: Riaan B. <riaan@e.co.za> - 2001-09-05 03:42:00
|
Hi Antoni, Antoni Aloy wrote: > > Hello! > > At lats I have been able to update my boa version via cvs. It seems its was > a speed problem related with modem connection as I have been able to update > using a faster connection. I'm also working over a modem :/ > > I have found a bug on Preferences.py line 38. When executing under Linux it > is not able to call exec and gives an error in from import wx.wx... . I have > a patch: substitute the exec... by a execfile(file) and it works fine for > me. Give the newest CVS a try and please report if this is still a problem. > > The other minor but concerns the splash screen, under Linux it shows an > awfull left bar. Yeah I saw :( I'll be focussing on GTK issues sometime this week. > On the other hand it can't find the tips directory, as it seems Docs > directory has been subtituted in the CVS for the data directory. It's part of the bundled docs, available from: http://boa-constructor.sourceforge.net/Help/Docs.zip > > Best regards, > > Antoni Aloy > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-09-05 03:41:47
|
Hi Sherlock, I think the problem is that the ZOA python method is not installed on your Zope. The 0.0.13 version available in CVS auto installs it. Try it out. sherlock costello wrote: > > I've got the latest boa from cvs and i'm running zope 2.4.0 -- when i > try to access my zope from boa, i get the following error: > > 13:35:48: Traceback (most recent call > last): > 13:35:48: File "Explorers/Explorer.py", line 365, in > OnSelect > 13:35:48: > self.selectTreeItem(item) > 13:35:48: File "Explorers/Explorer.py", line 343, in > selectTreeItem > 13:35:48: self.list.refreshItems(imgs, > data) > 13:35:48: File "Explorers/Explorer.py", line 231, in > refreshItems > 13:35:48: try: self.items = > explNode.openList() > 13:35:48: File "Explorers/ZopeExplorer.py", line 183, in > openList > 13:35:48: raise > Utils.html2txt(error.faultString) > 13:35:48: Unexpected Zope exception: cannot marshal > objects > > I thought perhaps this was related to my running wxPython 2.3.1, so i > made the effort to back down to 2.3.0 yet still received the same error. Well, 2.3.0 is still the required version (for now) > > ~c > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-09-05 02:20:53
|
Hello everybody, CVS has been updated at last. There were major changes to the codebase and I expect some problems. I see this update as the alpha for the upcoming alpha and it should be the last 'feature' update before the next release. Only bug fixes from now on! Changes: * Pervasive support for different Explorer transports. * Can 'save as' to other transports * Any clipboard can paste to any other clipboard * All transports can add folders, blank documents and be bookmarked. * Transparent images in the Explorer. GTK users are in for a bright pink shock, I'm still looking for a way to achieve transparency on wxGTK. If anyone has ideas *please* mail me. * Profiler now runs out of process * Find/replace dialogs (thanks to Tim Hochberg!) * Server mode (thanks to Tim Hochberg!) * Seperate Boa's started with modules on the commandline will transfer their arguments to a running Boa. * Better Preference editing support in the Inspector * Lots of wxSTC changes * wxSTC style editor dialog * Many default properties exposed * Support for using tab * Designer improvements * some properties added (wxWindow.SizeHints & wxSpinButton.Range) * 'old' Debugger improvements (less crashing) * Support for pure Python Boa applications (PyApp) * Zope support for PageTemplates (not turned on by default) Anyone still waiting for replies to email sent to me recently, please be patient, I'll get to it asap! Enjoy! -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: sherlock c. <wr...@cr...> - 2001-09-05 00:49:13
|
Robert, Thanx very much for the prompt response. I wasn't complaining in any way, I really think boa is fantastic. Just fyi, it appears that the problem isn't related to the newness of zope. I'm at home now (the earlier test was from at work where zope and boa were both running on the same linux box), and i've gotten the same error message when i try to connect from one windowsNT box (running boa checked out of cvs today) to another NT box (running zope 2.2.2). Let me know if there's anything i can help to do to troubleshoot this problem. ~c +-----Original Message----- +From: boa...@li... +[mailto:boa...@li...]On Behalf Of +Robert Boulanger +Sent: Tuesday, September 04, 2001 6:31 PM +To: sherlock costello +Cc: boa...@li... +Subject: Re: [Boa Constr] zope problems + + +sherlock, + +there are too many changes in zope 2.4.0. +Currently the situation is that also our other tools, like z-class +reverse and so don't work with this version of Zope. +Soon there will be a new version of boa (0.0.13) in cvs, but I can't +guarantee, that this problems are fixed there. +At the moment Riaan is involved in some major changes and bug-fixes +within boa for the new release and I don't think that these Zope +problems will be fixed within this new release, since I have some stress +at the moment with the finishing of twoother projects for customers. +While writing this mail, I must also tell you, that I can't verify the +error you reported, because I don't have the time at the moment. +Please watch the mailing list, you will get informed, when we have a +solution. +Thank you very much for reporting the problem. + + +-- + + + +Robert Boulanger +www.Bluedynamics.com +_____________________________________________________ +Boa Constructor - RAD GUI building IDE for wxPython + http://boa-constructor.sourceforge.net + + + + +sherlock costello wrote: +> I've got the latest boa from cvs and i'm running zope 2.4.0 -- when i +> try to access my zope from boa, i get the following error: +> +> 13:35:48: Traceback (most recent call +> last): 13:35:48: File +> "Explorers/Explorer.py", line 365, in OnSelect +> 13:35:48: +> self.selectTreeItem(item) + +> 13:35:48: File "Explorers/Explorer.py", line 343, in +> selectTreeItem 13:35:48: self.list.refreshItems(imgs, +> data) 13:35:48: File +> "Explorers/Explorer.py", line 231, in refreshItems +> 13:35:48: try: self.items = +> explNode.openList() 13:35:48: +> File "Explorers/ZopeExplorer.py", line 183, in openList +> 13:35:48: raise +> Utils.html2txt(error.faultString) +> 13:35:48: Unexpected Zope exception: cannot marshal +> objects +> I thought perhaps this was related to my running wxPython 2.3.1, so i +> made the effort to back down to 2.3.0 yet still received the same error. +> +> ~c +> +> +> +> +> +> +> +> _______________________________________________ +> Boa-constructor-users mailing list +> Boa...@li... +> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users +> + + + +_______________________________________________ +Boa-constructor-users mailing list +Bo...@li... +https://lists.sourceforge.net/lists/listinfo/boa-constructor-users + |
From: Robert B. <ro...@bl...> - 2001-09-04 22:31:08
|
sherlock, there are too many changes in zope 2.4.0. Currently the situation is that also our other tools, like z-class reverse and so don't work with this version of Zope. Soon there will be a new version of boa (0.0.13) in cvs, but I can't guarantee, that this problems are fixed there. At the moment Riaan is involved in some major changes and bug-fixes within boa for the new release and I don't think that these Zope problems will be fixed within this new release, since I have some stress at the moment with the finishing of twoother projects for customers. While writing this mail, I must also tell you, that I can't verify the error you reported, because I don't have the time at the moment. Please watch the mailing list, you will get informed, when we have a solution. Thank you very much for reporting the problem. -- Robert Boulanger www.Bluedynamics.com _____________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net sherlock costello wrote: > I've got the latest boa from cvs and i'm running zope 2.4.0 -- when i > try to access my zope from boa, i get the following error: > > 13:35:48: Traceback (most recent call > last): 13:35:48: File > "Explorers/Explorer.py", line 365, in OnSelect > 13:35:48: > self.selectTreeItem(item) > 13:35:48: File "Explorers/Explorer.py", line 343, in > selectTreeItem 13:35:48: self.list.refreshItems(imgs, > data) 13:35:48: File > "Explorers/Explorer.py", line 231, in refreshItems > 13:35:48: try: self.items = > explNode.openList() 13:35:48: > File "Explorers/ZopeExplorer.py", line 183, in openList > 13:35:48: raise > Utils.html2txt(error.faultString) > 13:35:48: Unexpected Zope exception: cannot marshal > objects > I thought perhaps this was related to my running wxPython 2.3.1, so i > made the effort to back down to 2.3.0 yet still received the same error. > > ~c > > > > > > > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > |
From: Antoni A. <al...@ct...> - 2001-09-04 22:01:02
|
Hello! At lats I have been able to update my boa version via cvs. It seems its was a speed problem related with modem connection as I have been able to update using a faster connection. I have found a bug on Preferences.py line 38. When executing under Linux it is not able to call exec and gives an error in from import wx.wx... . I have a patch: substitute the exec... by a execfile(file) and it works fine for me. The other minor but concerns the splash screen, under Linux it shows an awfull left bar. On the other hand it can't find the tips directory, as it seems Docs directory has been subtituted in the CVS for the data directory. Best regards, Antoni Aloy |
From: sherlock c. <wr...@cr...> - 2001-09-04 18:26:32
|
I've got the latest boa from cvs and i'm running zope 2.4.0 -- when i try to access my zope from boa, i get the following error: 13:35:48: Traceback (most recent call last): 13:35:48: File "Explorers/Explorer.py", line 365, in OnSelect 13:35:48: self.selectTreeItem(item) 13:35:48: File "Explorers/Explorer.py", line 343, in selectTreeItem 13:35:48: self.list.refreshItems(imgs, data) 13:35:48: File "Explorers/Explorer.py", line 231, in refreshItems 13:35:48: try: self.items = explNode.openList() 13:35:48: File "Explorers/ZopeExplorer.py", line 183, in openList 13:35:48: raise Utils.html2txt(error.faultString) 13:35:48: Unexpected Zope exception: cannot marshal objects I thought perhaps this was related to my running wxPython 2.3.1, so i made the effort to back down to 2.3.0 yet still received the same error. ~c |
From: Riaan B. <riaan@e.co.za> - 2001-08-21 20:03:28
|
Hi Lynndon, "Harnell, Lynndon" wrote: > > >FROM: Riaan Booysen > >DATE: 08/20/2001 10:43:42 > >SUBJECT: RE: [Boa Constr] wxGrid in Boa > >Hi Lynndon, please send plain text mail to the mailing list! > > Will do. Is this OK? Perfect, > > >Luckily there is support already built into Boa to do what you want. > > >It's called 'custom classes'. The first change you need to make, is to > >change your dbGrid class to have the same constructor as the original > >wxGrid class. > > By this do you mean the line?: > wxGrid.__init__(self,parent,-1, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) The line above it would be the class constructor. def __init__(... You defined a new class called dbGrid. Boa will generate source using your class name, but with the same constructor signature as the class we defined your class equivalent to with the line: _custom_classes = {'wxGrid': ['dbGrid']} I don't exactly know how you expect this dbGrid class to behave in the Designer. For the Designer it will be a wxGrid, not your class, so you won't see any new properties or behaviour. I need you to understand what happens here, trying to do what I recommend without really understanding will cause problems later, so if this is still unclear, please ask. > Boa inserts code like this: > self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = > self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style= 0) > > So that I should change the first to something like?: > > wxGrid.__init__(ID, self,parent,-1, pos, size, style= > wxSIMPLE_BORDER|wxSUNKEN_BORDER) See above, There are 2 routes I usually consider: One, to copy the definition from the docs: def __init__(self, parent, id=-1, pos=wxDefaultPosition, size=wxDefaultSize, style=wxWANTS_CHARS, name='grid') wxGrid.__init__(self, parent, id, pos, size, style, name) Two, to copy the wxPython (SWIG) signature: def __init__(self, *_args, **_kwargs): apply(wxGrid.__init__, _args, _kwargs) # access parameters from the _kwargs, e.g. _kwargs['style'] I usually use the second form when using _custom_classes. It's ugly, but it's short and it only passes on the args that are defined. > self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = > self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style= 0) > > >Then uncomment the line > ># self.grid1 = wxGrid ... > > > >and delete the line you added > > > > self.grid1 = dbGrid ... > > OK understood > > >Now add the following _custom_classes line to the top of the wxFrame1 > >definition as a class attribute: > > >class wxFrame1(wxFrame): > > > _custom_classes = {'wxGrid': ['dbGrid']} > > > def _init_utils(self): > > Got that. > > >Now open the Designer, select the Grid and change the Class property > >from wxGrid to dbGrid. > > That too. > > >You will notice that the constructor you defined takes 1 parameter, > >yet it is called with 5 keyword parameters in the source. > > Is this the line you mean in referring to the constructor definition, and is > the one parameter the style? I refered to: def __init__(self,parent): > > wxGrid.__init__(self,parent,-1, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) Just to clear up terminology, your line above is not the constructor definition/declaration, but where the base class's constructor is called within the constructor's code block. > > and is this the line you mean with 5 keywords in the source? There are 6 > parameters within the wxGrid brackets (ID,NAME,PARENT,POS,SIZE,STYLE) or is > one ignored? Sorry I did not count correctly, but this is beside the point. The point I tried to make was that it was more than the one parameter you had in your __init__ method ;) > > self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = > self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style= 0) > > Thanks for all your help. Hope this is all starting to make sense. > > Lynndon > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Harnell, L. <lyn...@up...> - 2001-08-21 00:22:03
|
>FROM: Riaan Booysen >DATE: 08/20/2001 10:43:42 >SUBJECT: RE: [Boa Constr] wxGrid in Boa >Hi Lynndon, please send plain text mail to the mailing list! Will do. Is this OK? >Luckily there is support already built into Boa to do what you want. >It's called 'custom classes'. The first change you need to make, is to >change your dbGrid class to have the same constructor as the original >wxGrid class. By this do you mean the line?: wxGrid.__init__(self,parent,-1, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) Boa inserts code like this: self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style= 0) So that I should change the first to something like?: wxGrid.__init__(ID, self,parent,-1, pos, size, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) >Then uncomment the line ># self.grid1 = wxGrid ... > >and delete the line you added > > self.grid1 = dbGrid ... OK understood >Now add the following _custom_classes line to the top of the wxFrame1 >definition as a class attribute: >class wxFrame1(wxFrame): > _custom_classes = {'wxGrid': ['dbGrid']} > def _init_utils(self): Got that. >Now open the Designer, select the Grid and change the Class property >from wxGrid to dbGrid. That too. >You will notice that the constructor you defined takes 1 parameter, >yet it is called with 5 keyword parameters in the source. Is this the line you mean in referring to the constructor definition, and is the one parameter the style? wxGrid.__init__(self,parent,-1, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) and is this the line you mean with 5 keywords in the source? There are 6 parameters within the wxGrid brackets (ID,NAME,PARENT,POS,SIZE,STYLE) or is one ignored? self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style= 0) Thanks for all your help. Lynndon |
From: Riaan B. <riaan@e.co.za> - 2001-08-20 22:02:35
|
Hi Lynndon, please send plain text mail to the mailing list! Lynndon Harnell wrote: > Hi all > > I have been trying to get a grid to work within Boa, and be contained > within a panel. > > My steps were: > 1 Create simple Boa app and frame > > 2 put panel and button on frame (unless another control is on the frame, > the panel grabs the whole frame. > > 3 Insert wxGrid object within panel. > > 4 Insert code for a grid (which works as a module) into the wxFrame1 code. > > 5 Change the reference in the original Boa code to refer to the new grid > class (dbGrid). As I have stated in a previous reply to you, do not change the _init_* methods unless you know what you are doing ;) Luckily there is support already built into Boa to do what you want. It's called 'custom classes'. The first change you need to make, is to change your dbGrid class to have the same constructor as the original wxGrid class. Then uncomment the line # self.grid1 = wxGrid ... and delete the line you added self.grid1 = dbGrid ... Now add the following _custom_classes line to the top of the wxFrame1 definition as a class attribute: class wxFrame1(wxFrame): _custom_classes = {'wxGrid': ['dbGrid']} def _init_utils(self): Now open the Designer, select the Grid and change the Class property from wxGrid to dbGrid. > > When running this I get "TypeError: __init__() got an unexpected keyword > argument ....... message from the self.grid1=...... (line 62). You will notice that the constructor you defined takes 1 parameter, yet it is called with 5 keyword parameters in the source. > > Any help would be greatly appreciated. Actually I find the whole wxPython > grid a bit of a maze, and would appreciate any help in deciding which class > of grid is best suited for which application. I've never really used the grid, sorry. > > TIA Good luck! > > Lynndon Harnell > > Code is as follows: > > #Boa:Frame:wxFrame1 > from wxPython.wx import * > from wxPython.grid import * > ColHeaders=["PipeID", "Len(m)", "Dia(mm)", "WT(mm)", "Gr", "SYMS(MPa)", > "Vol(m3)"] > RowHeaders=["1","2"] > NCols=len(ColHeaders) > NRows=len(RowHeaders) > class dbGrid(wxGrid): > def __init__(self,parent): > wxGrid.__init__(self,parent,-1, style= > wxSIMPLE_BORDER|wxSUNKEN_BORDER) > > self.CreateGrid(NRows,NCols) > > self.SetGridLineColour(wxColour(128,128,128)) > self.EnableEditing(false) > self.SetSelectionMode(wxGrid.wxGridSelectColumns) > self.SetDefaultCellAlignment(wxRIGHT,wxCENTER) > self.SetRowLabelAlignment(wxCENTER,wxCENTER) > self.SetColLabelAlignment(wxCENTER,wxCENTER) > self.SetColLabelSize(20) > self.SetRowLabelSize(10) > self.SetCellHighlightColour(wxBLACK) > # set cell values > self.SetCellValue(0, 0, "1") > self.SetCellValue(0, 1, "2120") > self.SetCellValue(0, 2, "114.3") > self.SetCellValue(0, 3, "4.8") > self.SetCellValue(0, 4, "B") > > for i in range(NCols): > self.SetColLabelValue(i,ColHeaders[i]) > self.SetColSize(i,50) > for i in range(NRows): > self.SetRowLabelValue(i,RowHeaders[i]) > > def SetData(self,data): > for row in range(len(data)): > for col in range(len(data[row])): > self.SetCellValue(row,col,data[row][col]) > #--------------------------------------------------------------------------- > def create(parent): > return wxFrame1(parent) > [wxID_WXFRAME1, wxID_WXFRAME1BUTTON1, wxID_WXFRAME1GRID1, > wxID_WXFRAME1PANEL1] = map(lambda _init_ctrls: wxNewId(), range(4)) > class wxFrame1(wxFrame): > def _init_utils(self): > pass > def _init_ctrls(self, prnt): > wxFrame.__init__(self, id = wxID_WXFRAME1, name = '', parent = > prnt, pos = wxPoint(196, 126), size = wxSize(377, 232), style = > wxDEFAULT_FRAME_STYLE, title = 'wxFrame1') > self._init_utils() > self.panel1 = wxPanel(id = wxID_WXFRAME1PANEL1, name = 'panel1', > parent = self, pos = wxPoint(0, 0), size = wxSize(288, 120), style = > wxTAB_TRAVERSAL) > # self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', > parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style > = wxTHICK_FRAME | wxSUNKEN_BORDER) > self.grid1 = dbGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', > parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style > = wxTHICK_FRAME | wxSUNKEN_BORDER) > self.button1 = wxButton(id = wxID_WXFRAME1BUTTON1, label = > 'button1', name = 'button1', parent = self, pos = wxPoint(168, 176), size = > wxSize(75, 23), style = 0) > def __init__(self, parent): > self._init_ctrls(parent) > Lynndon Harnell -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Lynndon H. <lyn...@ec...> - 2001-08-20 11:01:58
|
Hi all I have been trying to get a grid to work within Boa, and be contained within a panel. My steps were: 1 Create simple Boa app and frame 2 put panel and button on frame (unless another control is on the frame, the panel grabs the whole frame. 3 Insert wxGrid object within panel. 4 Insert code for a grid (which works as a module) into the wxFrame1 code. 5 Change the reference in the original Boa code to refer to the new grid class (dbGrid). When running this I get "TypeError: __init__() got an unexpected keyword argument ....... message from the self.grid1=...... (line 62). Any help would be greatly appreciated. Actually I find the whole wxPython grid a bit of a maze, and would appreciate any help in deciding which class of grid is best suited for which application. TIA Lynndon Harnell Code is as follows: #Boa:Frame:wxFrame1 from wxPython.wx import * from wxPython.grid import * ColHeaders=["PipeID", "Len(m)", "Dia(mm)", "WT(mm)", "Gr", "SYMS(MPa)", "Vol(m3)"] RowHeaders=["1","2"] NCols=len(ColHeaders) NRows=len(RowHeaders) class dbGrid(wxGrid): def __init__(self,parent): wxGrid.__init__(self,parent,-1, style= wxSIMPLE_BORDER|wxSUNKEN_BORDER) self.CreateGrid(NRows,NCols) self.SetGridLineColour(wxColour(128,128,128)) self.EnableEditing(false) self.SetSelectionMode(wxGrid.wxGridSelectColumns) self.SetDefaultCellAlignment(wxRIGHT,wxCENTER) self.SetRowLabelAlignment(wxCENTER,wxCENTER) self.SetColLabelAlignment(wxCENTER,wxCENTER) self.SetColLabelSize(20) self.SetRowLabelSize(10) self.SetCellHighlightColour(wxBLACK) # set cell values self.SetCellValue(0, 0, "1") self.SetCellValue(0, 1, "2120") self.SetCellValue(0, 2, "114.3") self.SetCellValue(0, 3, "4.8") self.SetCellValue(0, 4, "B") for i in range(NCols): self.SetColLabelValue(i,ColHeaders[i]) self.SetColSize(i,50) for i in range(NRows): self.SetRowLabelValue(i,RowHeaders[i]) def SetData(self,data): for row in range(len(data)): for col in range(len(data[row])): self.SetCellValue(row,col,data[row][col]) #--------------------------------------------------------------------------- def create(parent): return wxFrame1(parent) [wxID_WXFRAME1, wxID_WXFRAME1BUTTON1, wxID_WXFRAME1GRID1, wxID_WXFRAME1PANEL1] = map(lambda _init_ctrls: wxNewId(), range(4)) class wxFrame1(wxFrame): def _init_utils(self): pass def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_WXFRAME1, name = '', parent = prnt, pos = wxPoint(196, 126), size = wxSize(377, 232), style = wxDEFAULT_FRAME_STYLE, title = 'wxFrame1') self._init_utils() self.panel1 = wxPanel(id = wxID_WXFRAME1PANEL1, name = 'panel1', parent = self, pos = wxPoint(0, 0), size = wxSize(288, 120), style = wxTAB_TRAVERSAL) # self.grid1 = wxGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style = wxTHICK_FRAME | wxSUNKEN_BORDER) self.grid1 = dbGrid(id = wxID_WXFRAME1GRID1, name = 'grid1', parent = self.panel1, pos = wxPoint(104, 24), size = wxSize(136, 80), style = wxTHICK_FRAME | wxSUNKEN_BORDER) self.button1 = wxButton(id = wxID_WXFRAME1BUTTON1, label = 'button1', name = 'button1', parent = self, pos = wxPoint(168, 176), size = wxSize(75, 23), style = 0) def __init__(self, parent): self._init_ctrls(parent) Lynndon Harnell |
From: Riaan B. <riaan@e.co.za> - 2001-08-18 19:42:39
|
Hi Finbarr, Finbarr O'Keeffe wrote: > > I have downloaded the latest version of boa (0.0.12) using cvs to check a > problem we are having with splitter windows. I have created a window and > placed in it a splitter & toolbar. Within the splitter I have place a text > control (window 1) and a list box (window 2). This all seems fine and the > app runs ok. I have the following problems when going back into designer:- > 1] When you go back into designer the splitter fills the window and you > can't see the toolbar anymore. The position in the properties window is > (0,0) and if you change to (0,30) its fine but boa keeps on resetting it > back to (0,0) When you first reported this, it reminded me of a known problem with toolbars on wxGTK. I deserve the stress I caused myself for not reading your description thoroughly :) Your problem (and I know many people run into this once) is that the ToolBar is not connected to the Frame. There is a property called ToolBar on a wxFrame that you must link to the toolbar before the splitter will know which client area to fill. > 2] If you try to delete the splitter window (or even the contents of the > window) boa crashes. I have tried to set the splitter properties of window 1 > & 2 to None and then delete the text & list controls but this does not cure > the problem either. I cannot reproduce this crash with a frame/toolbar/splitter/textctrl/listctrl I've attached the sample that works for me, please test if this crashes for you or not. Please send me the source file that crashes (private mail if you prefer), this should actually be easy to fix once I pinpoint the culprit, but until I can reproduce it I'm helpless. > > Hope the feedback is useful > > Finbarr > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-08-17 13:54:57
|
Hi Horst, Horst Eyermann wrote: > > Hello, > I am using boa since a fairly short time, and so far I am quite pleased with > it. > However, I now am at a point, where I need some advice. > > In my application, I try to add a customised Grid (for accessing ~ 100000 word > wordlists). > What would be the way to go? - I propably just could hack it in the source > code, but then I guess, I could not access properties from within boa. Unfortunately Boa cannot give more support for wxGrid at the moment. When Boa's property detection/introspection code examines a wxGrid this sometimes leads to crashes, so I only display properties from it's wxWindow base class. Deleting the grid in the Designer can also lead to a crash :(( The best advice I have in connection with grids is to do all the grid creation and initialisation code by hand in the __init__ method. Do not edit _init_* methods! -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Horst E. <ho...@fr...> - 2001-08-17 09:19:00
|
Hello, I am using boa since a fairly short time, and so far I am quite pleased with it. However, I now am at a point, where I need some advice. In my application, I try to add a customised Grid (for accessing ~ 100000 word wordlists). What would be the way to go? - I propably just could hack it in the source code, but then I guess, I could not access properties from within boa. Any suggestions on how to to this? THanks, Horst Ho...@fr... Horst Eyermann Germany You need a dictionary? - visit http://www.freedict.de for free (GPL) dictionaries (unix; windows work in progress) For windows, visit http://www.freedict.de/wbuch A article (in German) about dictionary efforts on the net http://www.heise.de/tp/deutsch/inhalt/on/5927/1.html |
From: Riaan B. <riaan@e.co.za> - 2001-08-17 04:16:29
|
Hi Bill, Bill Barnes wrote: > > Hi Riaan: > > Thanks for the response. Now running. > I had followed the link to 2.2.5 from the Boa home page, read the notes and > assumed an update. > > Now, the biggy. > > Was led to Boa by reading that it supported database access (PostgreSQL) and > updates. Does anyone currently do this? Have examples? > Can't find any discussion of this. You were misled to Boa ;) No there is no specific support currently. You'd have to populate and store the data from the controls yourself. This is on the long term roadmap though. > > Thanks for help. > > -Bill > > On Tuesday 14 August 2001 19:52, you wrote: > > Hi Bill, > > > > > > Boa 0.0.5 needs wxPython 2.2.5. > > Boa 0.0.12 (available by CVS) needs wxPython 2.3.0. > > -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-08-17 04:16:13
|
Hello Tom, Tom Malcolmson wrote: > > > The way it works now, if a user clicks on any Python object that > > > represents some code then I open the corresponding file > > using whatever > > > editor is registered for the .py extension. > > > > What registration is this? > > The standard registration should run the file in the > > interpreter. PythonWin adds an edit option to the popup > > context menu and I've given instructions on the mailing list > > before for adding a similar > > entry for Boa. Is this what you are refering to? > > Yes, that is what I'm referring to. > I'm currently using the ShellExecute API and specifying the 'edit' > option. I don't want Boa to override Pythonwin so I've suggested adding it as 'Edit in Boa', this is not accessible from ShellExecute I suppose... > > > That is Ok, but I know the line number of the user's > > selection, so I > > > would like to open the file at that line number. > > > > > > Would it be possible for the next version of Boa to make this > > > possible? > > > > Sounds cool, is there some official way to specify this? > > I was thinking <filename>::<lineno> when passed on the command line. > > > > Also remember that every invocation on the command line will > > start up a new Boa (unless someone implements the necessary > > DDE support > > in Boa) > > I had been hoping that there would be a standard way to do this, but > apparently there isn't. I've now ripped the dde code from Pythonwin and it seems to work, you need to have Pythonwin installed so I don't know if that defeats your purpose. I'm still undecided if this should be on or off by default... > > I think it is unusual to run two command-line parameters together like > that (<filename>::<lineno>). I think it would be more common to specify > them with a space between them. But multiple files are already separated by spaces. Unless you choose a better separator (some standard one I don't know), it is still :: e.g. Boa.py d:\dev\tst.py::42 > > In an earlier thread you discussed starting just the editor. What was > the conclusion of that? Perhaps I could do that, so that the user would > only get multiple copies of the editor. It will happen after the next release. (Btw, *only* the editor is 90% of Boa ;) -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-08-14 23:51:37
|
Hi Tom, Tom Malcolmson wrote: > > Hi. > > I've created a Python development utility (www.malcolmson.com/pyspy) > that I want to interface with Boa. > > The way it works now, if a user clicks on any Python object that > represents some code then I open the corresponding file using whatever > editor is registered for the .py extension. What registration is this? The standard registration should run the file in the interpreter. PythonWin adds an edit option to the popup context menu and I've given instructions on the mailing list before for adding a similar entry for Boa. Is this what you are refering to? > > That is Ok, but I know the line number of the user's selection, so I > would like to open the file at that line number. > > Would it be possible for the next version of Boa to make this possible? Sounds cool, is there some official way to specify this? I was thinking <filename>::<lineno> when passed on the command line. Also remember that every invocation on the command line will start up a new Boa (unless someone implements the necessary DDE support in Boa) > > Thanks, > > Tom. > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-08-14 23:50:54
|
Hi Bill, Bill Barnes wrote: > > Installed the following in Win95 > Boa-0.0.5 > Python-2.1 > W95ws2setup > wxMSW-2_3_1-setup > wxPython-2.2.1-Py21-hybrid Boa 0.0.5 needs wxPython 2.2.5. Boa 0.0.12 (available by CVS) needs wxPython 2.3.0. > > >From the "Getting Started Guide" > 2.1 Creating a new App. > saved wxApp1.py and wxFrame1.py > 2.2 Using the Designer to set the title > used the designer button to display the frame > typed "Notebook" in Title field. > used the 'post' button and frame closed, redisplaying the source editor. > saw no change in the source. > tried to save wxFrame1 and got the message > "\common\choiccmn.cpp[47]: assert failed: invalid string in > wxChoice::SetStringSelection". > > Thanks for your help. > -Bill > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users HTH, -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Tom M. <To...@Ma...> - 2001-08-14 19:36:28
|
Hi. I've created a Python development utility (www.malcolmson.com/pyspy) that I want to interface with Boa. The way it works now, if a user clicks on any Python object that represents some code then I open the corresponding file using whatever editor is registered for the .py extension. That is Ok, but I know the line number of the user's selection, so I would like to open the file at that line number. Would it be possible for the next version of Boa to make this possible? Thanks, Tom. |
From: Bill B. <bba...@au...> - 2001-08-13 03:53:35
|
Installed the following in Win95 Boa-0.0.5 Python-2.1 W95ws2setup wxMSW-2_3_1-setup wxPython-2.2.1-Py21-hybrid From the "Getting Started Guide" 2.1 Creating a new App. saved wxApp1.py and wxFrame1.py 2.2 Using the Designer to set the title used the designer button to display the frame typed "Notebook" in Title field. used the 'post' button and frame closed, redisplaying the source editor. saw no change in the source. tried to save wxFrame1 and got the message "\common\choiccmn.cpp[47]: assert failed: invalid string in wxChoice::SetStringSelection". Thanks for your help. -Bill |
From: Riaan B. <riaan@e.co.za> - 2001-08-10 16:05:39
|
Hi Finbarr, Finbarr O'Keeffe wrote: > > I have downloaded the latest version of boa (0.0.12) using cvs to check a > problem we are having with splitter windows. I have created a window and > placed in it a splitter & toolbar. Within the splitter I have place a text > control (window 1) and a list box (window 2). This all seems fine and the > app runs ok. I have the following problems when going back into designer:- > 1] When you go back into designer the splitter fills the window and you > can't see the toolbar anymore. The position in the properties window is > (0,0) and if you change to (0,30) its fine but boa keeps on resetting it > back to (0,0) > 2] If you try to delete the splitter window (or even the contents of the > window) boa crashes. I have tried to set the splitter properties of window 1 > & 2 to None and then delete the text & list controls but this does not cure > the problem either. > > Hope the feedback is useful Argh, this bug sounds familiar, I thought it was fixed :( I don't have time now, but I'll look at it as soon as possible. > > Finbarr > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Riaan B. <riaan@e.co.za> - 2001-08-10 16:05:34
|
Hi Mike, Mike Mueller wrote: > > Hi everybody, > > I just started using Boa. It seems a great IDE to me. > > So far everything works fine only th2 keyboard input for some characters > doesn't work. All shortcuts involving Ctrl or F1 to F10 don't work but This sounds like the bug introduced by wxPython 2.3.1, please revert to 2.3.0 if you want to use accelerators. > worse I can not type {, [, ], }, \ because on my German keyboard I have to > access corresponding keys with the Alt-Gr key which is located at the > place where the second (right) Alt key at US keyboards is. Cut an paste of > those characters from the clipboard works just fine. > > The Scintilla key bindings (Ctrl-C, Ctrl-V, Ctrl-Z etc.) are ok. > > Is there anyplace where I have to set some configurations to make my > keyboard work? There are settings for this in your Preferences.py file. You should set: handleSpecialEuropeanKeys = 1 euroKeysCountry = 'euro' > > Thanks. > > Mike > > my system: > > Win NT 4.0 > Python 2.1 > wxPython _WXMSW_ 2.3.1 > Boa 0.0.5 > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |
From: Mike M. <mmu...@dg...> - 2001-08-10 14:53:39
|
Hi everybody, I just started using Boa. It seems a great IDE to me. So far everything works fine only th2 keyboard input for some characters doesn't work. All shortcuts involving Ctrl or F1 to F10 don't work but worse I can not type {, [, ], }, \ because on my German keyboard I have to access corresponding keys with the Alt-Gr key which is located at the place where the second (right) Alt key at US keyboards is. Cut an paste of those characters from the clipboard works just fine. The Scintilla key bindings (Ctrl-C, Ctrl-V, Ctrl-Z etc.) are ok. Is there anyplace where I have to set some configurations to make my keyboard work? Thanks. Mike my system: Win NT 4.0 Python 2.1 wxPython _WXMSW_ 2.3.1 Boa 0.0.5 |