You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
(146) |
Oct
(78) |
Nov
(69) |
Dec
(70) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(188) |
Feb
(142) |
Mar
(143) |
Apr
(131) |
May
(97) |
Jun
(221) |
Jul
(127) |
Aug
(89) |
Sep
(83) |
Oct
(66) |
Nov
(47) |
Dec
(70) |
2003 |
Jan
(77) |
Feb
(91) |
Mar
(103) |
Apr
(98) |
May
(134) |
Jun
(47) |
Jul
(74) |
Aug
(71) |
Sep
(48) |
Oct
(23) |
Nov
(37) |
Dec
(13) |
2004 |
Jan
(24) |
Feb
(15) |
Mar
(52) |
Apr
(119) |
May
(49) |
Jun
(41) |
Jul
(34) |
Aug
(91) |
Sep
(169) |
Oct
(38) |
Nov
(32) |
Dec
(47) |
2005 |
Jan
(61) |
Feb
(47) |
Mar
(101) |
Apr
(130) |
May
(51) |
Jun
(65) |
Jul
(71) |
Aug
(96) |
Sep
(28) |
Oct
(20) |
Nov
(39) |
Dec
(62) |
2006 |
Jan
(13) |
Feb
(19) |
Mar
(18) |
Apr
(34) |
May
(39) |
Jun
(50) |
Jul
(63) |
Aug
(18) |
Sep
(37) |
Oct
(14) |
Nov
(56) |
Dec
(32) |
2007 |
Jan
(30) |
Feb
(13) |
Mar
(25) |
Apr
(3) |
May
(15) |
Jun
(42) |
Jul
(5) |
Aug
(17) |
Sep
(6) |
Oct
(25) |
Nov
(49) |
Dec
(10) |
2008 |
Jan
(12) |
Feb
|
Mar
(17) |
Apr
(18) |
May
(12) |
Jun
(2) |
Jul
(2) |
Aug
(6) |
Sep
(4) |
Oct
(15) |
Nov
(45) |
Dec
(9) |
2009 |
Jan
(1) |
Feb
(3) |
Mar
(18) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(13) |
Aug
(2) |
Sep
(1) |
Oct
(9) |
Nov
(13) |
Dec
|
2010 |
Jan
(2) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
|
Feb
|
Mar
(10) |
Apr
(44) |
May
(9) |
Jun
(22) |
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(8) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Phil E. <ph...@li...> - 2006-11-08 01:49:20
|
On Tuesday 07 Nov 2006 17:11, kc1...@ya... wrote: > Since Alex mentioned it, I took another look at the tools directory > (haven't done that for a while). Now things are really confusing. We have > a "code editor", a "experimentalResourceEditor", a "LayoutEditor", a > "oneEditor", a "resourceEditor", a "textEditor", and a "standaloneBuilder". > > May be some of them are left-overs from previous versions? > I can vouch for standaloneBuilder, as that's one of my little babies! :-) It's a tool to help with converting PythonCard apps into full-blown Windows executables - take a look in tools\standaloneBuilder\doc for details and screenshots. I've just recently checked an updated version into CVS, and I'll be posting a snapshot of the code as it stands on my website here: http://www.linux2000.com/pm.html This page has screenshots which show how the user interface has been updated since the previous version. Thanks for all the feedback - I think the main thing that it shows is that (like most software projects unfortunately) PythonCard really needs some long hard work on the documentation. Somehow it's always more fun to work on the code than the docs, though... -- Regards Phil Edwards Brighton, UK |
From: <kc1...@ya...> - 2006-11-07 23:52:26
|
I don't see a codeEditor under oneEditor. Here's what I see:=0A=0ADirector= y of C:\Python23\Lib\site-packages\PythonCard\tools\oneEditor=0A=0A12/28/20= 05 06:48 PM 9,429 codePage.py=0A10/03/2004 04:58 PM = 1,518 codePage.rsrc.py=0A10/18/2004 10:55 AM 2,139 macbuild= .py=0A10/03/2004 04:58 PM 71,872 resourceEditor.py=0A10/03/2004= 04:58 PM 8,580 resourceEditor.rsrc.py=0A10/03/2004 04:58 PM = 3,710 restEditor.py=0A10/03/2004 04:58 PM 15,274 re= stEditor.rsrc.py=0A10/03/2004 04:58 PM 920 snippet.py=0A12/2= 8/2005 06:48 PM 53,520 tabcodeEditor.py=0A10/04/2004 05:42 PM = 13,514 tabcodeEditor.rsrc.py=0A =0AThe only one that runs is tab= codeEditor.py. That looks like the original codeEditor - there is no drop-= down list with component....=0A=0A=0A> =0A> >=0A> > Regarding the question = of code generator, you said that the=0A> > codeEditor does that? How so?= =0A> When you're=0A> - in the code editor (the recent one - in oneEditor/= codeEditor)=0A> - and you use the drop-down list to select a component= =0A> the second drop-down now shows a list of events (with a "+" =0A> sign = next =0A> to those which have handlers defined).=0A> =0A=0A<snip>=0A=0A> = =0A> -- =0A> Alex Tweedly al...@tw... http://www.tweedly.net=0A> = =0A=0A =0A--=0AJohn Henry=0A=0A |
From: Winston W. <win...@st...> - 2006-11-07 23:41:15
|
Regarding resizing problems in Layout Editor: I have the same problem. I'm on Mac OS X 10.4.8, and using wxWidgets 2.6.2.1. I have found that when I first make a resource in Layout Editor, resizing a widget works. But if I save it and load it later, resizing will not work. I can click on the resize handles, but moving the mouse will move the widget instead of resizing it. Regarding sizers, I think this is a big area of need too. I've got a little make-shift solution, that I call in on_size() to recalculate widget sizes, but it should be built-in. I prefer Mac OS X Interface Builder style resizing. -Winston On Nov 7, 2006, at 6:30 PM, kc1...@ya... wrote: >> >> kc1...@ya... wrote: >> >>> To Alex: >>> >>> The "layout editor" (I errornously referred to it as one of the >>> resource editor) is not very stable for me. When I use it, I get >>> lots of failures and that's what I meant when I say "I have >> to click >>> back and forth between the command window and the GUI >> window for it >>> to be usable). Towards the bottom of this email, I listed some of >>> the messages I get (from just moving couple of the controls >> around) >>> - it appears most problems are resize related. >>> >> Ah - OK. I have never seen these errors - can you please send >> version >> info (i.e. which platform, os version, python, wx, wxpython >> versions >> and PythonCard version) and I'll see if I can reproduce them (or >> failing that, if I can figure what the problem is without >> reproducing >> them). >> > > I am using WindowsXP (SP3), Python 2.3. Not sure what version of > wx and wxpython but the name of the directory is wx-2.6-msw-unicode > and the __version__.py indicates that it's wx 2.6.3.2. To produce > the failure, all I needed to do is to drag the components around. > > >> And a reminder to everyone - I (we) can't fix errors we don't know >> about. And if John has previously reprted them, then I'm very sorry >> for missing the report :-) >> ______________________________________________________ winston wolff - (646) 827-2242 - http://www.stratolab.com learning by creating - video game courses for kids in new york |
From: <kc1...@ya...> - 2006-11-07 23:30:14
|
> =0A> kc1...@ya... wrote:=0A> =0A> > To Alex:=0A> >=0A>= > The "layout editor" (I errornously referred to it as one of the=0A> > re= source editor) is not very stable for me. When I use it, I get =0A> > lot= s of failures and that's what I meant when I say "I have =0A> to click =0A= > > back and forth between the command window and the GUI =0A> window for i= t =0A> > to be usable). Towards the bottom of this email, I listed some o= f =0A> > the messages I get (from just moving couple of the controls =0A> = around) =0A> > - it appears most problems are resize related.=0A> >=0A> Ah= - OK. I have never seen these errors - can you please send =0A> version = =0A> info (i.e. which platform, os version, python, wx, wxpython =0A> vers= ions =0A> and PythonCard version) and I'll see if I can reproduce them (or= =0A> failing that, if I can figure what the problem is without =0A> repro= ducing =0A> them).=0A> =0A=0AI am using WindowsXP (SP3), Python 2.3. Not = sure what version of wx and wxpython but the name of the directory is wx-2.= 6-msw-unicode and the __version__.py indicates that it's wx 2.6.3.2. To pr= oduce the failure, all I needed to do is to drag the components around.=0A= =0A=0A> And a reminder to everyone - I (we) can't fix errors we don't know = =0A> about. And if John has previously reprted them, then I'm very sorry = =0A> for missing the report :-)=0A> =0A=0ASorry. I wasn't sure if the code= is being maintained. :=3D)=0A=0AMy PythonCard searches always stops at a= round 2004 (with Kevin Altis's name mostly). So, I didn't think posting a= nything would be useful.=0A=0A<snip>=0A=0A> =0A> -- =0A> Alex Tweedly al= ex...@tw... http://www.tweedly.net=0A=0A=0A--=0AJohn Henry=0A=0A |
From: <al...@tw...> - 2006-11-07 22:50:30
|
kc1...@ya... wrote: > To Alex: > > The "layout editor" (I errornously referred to it as one of the =20 > resource editor) is not very stable for me. When I use it, I get =20 > lots of failures and that's what I meant when I say "I have to click =20 > back and forth between the command window and the GUI window for it =20 > to be usable). Towards the bottom of this email, I listed some of =20 > the messages I get (from just moving couple of the controls around) =20 > - it appears most problems are resize related. > Ah - OK. I have never seen these errors - can you please send version =20 info (i.e. which platform, os version, python, wx, wxpython versions =20 and PythonCard version) and I'll see if I can reproduce them (or =20 failing that, if I can figure what the problem is without reproducing =20 them). And a reminder to everyone - I (we) can't fix errors we don't know =20 about. And if John has previously reprted them, then I'm very sorry =20 for missing the report :-) > And at one time it kept asking me not to double click...drives me =20 > nuts...but it doesn't seem to do that now > Yeah - that one was very irritating - I was on the point of simply =20 removing that error message, which was really only in there to let me =20 know that some "impossible" circumstance had happened and was being =20 ignored. > > Regarding the question of code generator, you said that the =20 > codeEditor does that? How so? When you're - in the code editor (the recent one - in oneEditor/codeEditor) - and you use the drop-down list to select a component the second drop-down now shows a list of events (with a "+" sign next =20 to those which have handlers defined). If you seelct one of those so marked, then the editor moves you to the =20 first line of that handler. If you select a new one (i.e. not marked with a "+"), the editor =20 inserts a blank handler for that event (beware - it does this at the =20 current cursor position - so you should position yourself at the start =20 of a blank line between handlers before doing this). > Even if it does, it would be the wrong place to do that. I think =20 > it's very counter-intuitive. Within the resource editor, you see a =20 > control, and naturally you would say "I want this control to do ... =20 > when the user click, select, ... " > Currently the resource editor provides you no way to see or edit the =20 source code, so making changes to the source while in the =20 resourceEditor would be (IMHO) quite unnatural, even dangerous. When =20 we (some day) have a single integrated editor, then it would make =20 sense. But today, while in the resource editor it shouldn't (again, =20 just IMHO) be able to touch the source code. Apart from anything else, =20 I often (usually) have both resource and code editors open at the same =20 time, so any source code changes would be either ignored or (perhaps) =20 lost due to subsequent writing out the source code frm the codeEditor. Thanks again for the tracebacks - I'll take a look at them (but the =20 version info would also help). --=20 Alex Tweedly al...@tw... http://www.tweedly.net |
From: <kc1...@ya...> - 2006-11-07 17:11:34
|
Since Alex mentioned it, I took another look at the tools directory (haven'= t done that for a while). Now things are really confusing. We have a "cod= e editor", a "experimentalResourceEditor", a "LayoutEditor", a "oneEditor",= a "resourceEditor", a "textEditor", and a "standaloneBuilder".=0A=0AMay be= some of them are left-overs from previous versions?=0A=0A=0A =0A--=0AJohn = Henry=0A=0A |
From: <kc1...@ya...> - 2006-11-07 17:01:24
|
To Alex:=0A=0AThe "layout editor" (I errornously referred to it as one of t= he resource editor) is not very stable for me. When I use it, I get lots o= f failures and that's what I meant when I say "I have to click back and for= th between the command window and the GUI window for it to be usable). Tow= ards the bottom of this email, I listed some of the messages I get (from ju= st moving couple of the controls around) - it appears most problems are res= ize related.=0A=0AAnd at one time it kept asking me not to double click...d= rives me nuts...but it doesn't seem to do that now=0A=0ARegarding the quest= ion of code generator, you said that the codeEditor does that? How so? Ev= en if it does, it would be the wrong place to do that. I think it's very c= ounter-intuitive. Within the resource editor, you see a control, and natu= rally you would say "I want this control to do ... when the user click, sel= ect, ... "=0A=0A=0A=0A=0A=0A=0A=0A=0ATraceback (most recent call last):=0A = File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, in _d= ispatch=0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\site-= packages\PythonCard\tools\layoutEditor\layoutEditor.py", line 1054, in on_t= opMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-packages\Pyth= onCard\tools\layoutEditor\layoutEditor.py", line 1023, in doResize=0A gl= obalPosition =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.p= y", line 19, in __getitem__=0A def __getitem__(self, key): return self.d= ata[key]=0AKeyError=0ATraceback (most recent call last):=0A File "C:\PYTHO= N23\lib\site-packages\PythonCard\widget.py", line 408, in _dispatch=0A h= andler(background, aWxEvent)=0A File "C:\Python23\Lib\site-packages\Python= Card\tools\layoutEditor\layoutEditor.py", line 1054, in on_topMiddle_mouseD= rag=0A return=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\l= ayoutEditor\layoutEditor.py", line 1023, in doResize=0A globalPosition = =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, = in __getitem__=0A def __getitem__(self, key): return self.data[key]=0AKe= yError=0ATraceback (most recent call last):=0A File "C:\PYTHON23\lib\site-= packages\PythonCard\widget.py", line 408, in _dispatch=0A handler(backgr= ound, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\la= youtEditor\layoutEditor.py", line 1054, in on_topMiddle_mouseDrag=0A ret= urn=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\l= ayoutEditor.py", line 1023, in doResize=0A globalPosition =3D wx.GetMous= ePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, in __getitem__= =0A def __getitem__(self, key): return self.data[key]=0AKeyError=0ATrace= back (most recent call last):=0A File "C:\PYTHON23\lib\site-packages\Pytho= nCard\widget.py", line 408, in _dispatch=0A handler(background, aWxEvent= )=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\lay= outEditor.py", line 1054, in on_topMiddle_mouseDrag=0A return=0A File "= C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor.py= ", line 1023, in doResize=0A globalPosition =3D wx.GetMousePosition()=0A= File "C:\Python23\lib\UserDict.py", line 19, in __getitem__=0A def __g= etitem__(self, key): return self.data[key]=0AKeyError=0ATraceback (most rec= ent call last):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.p= y", line 408, in _dispatch=0A handler(background, aWxEvent)=0A File "C:= \Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor.py",= line 1054, in on_topMiddle_mouseDrag=0A return=0A File "C:\Python23\Li= b\site-packages\PythonCard\tools\layoutEditor\layoutEditor.py", line 1023, = in doResize=0A globalPosition =3D wx.GetMousePosition()=0A File "C:\Pyt= hon23\lib\UserDict.py", line 19, in __getitem__=0A def __getitem__(self,= key): return self.data[key]=0AKeyError=0ATraceback (most recent call last)= :=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, = in _dispatch=0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\= site-packages\PythonCard\tools\layoutEditor\layoutEditor.py", line 1054, in= on_topMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-package= s\PythonCard\tools\layoutEditor\layoutEditor.py", line 1023, in doResize=0A= globalPosition =3D wx.GetMousePosition()=0A File "C:\Python23\lib\User= Dict.py", line 19, in __getitem__=0A def __getitem__(self, key): return = self.data[key]=0AKeyError=0ATraceback (most recent call last):=0A File "C:= \PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, in _dispatch= =0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\site-package= s\PythonCard\tools\layoutEditor\layoutEditor.py", line 1054, in on_topMiddl= e_mouseDrag=0A return=0A File "C:\Python23\Lib\site-packages\PythonCard= \tools\layoutEditor\layoutEditor.py", line 1023, in doResize=0A globalPo= sition =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", li= ne 19, in __getitem__=0A def __getitem__(self, key): return self.data[ke= y]=0AKeyError=0ATraceback (most recent call last):=0A File "C:\PYTHON23\li= b\site-packages\PythonCard\widget.py", line 408, in _dispatch=0A handler= (background, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\t= ools\layoutEditor\layoutEditor.py", line 1054, in on_topMiddle_mouseDrag=0A= return=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutE= ditor\layoutEditor.py", line 1023, in doResize=0A globalPosition =3D wx.= GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, in __ge= titem__=0A def __getitem__(self, key): return self.data[key]=0AKeyError= =0ATraceback (most recent call last):=0A File "C:\PYTHON23\lib\site-packag= es\PythonCard\widget.py", line 408, in _dispatch=0A handler(background, = aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEd= itor\layoutEditor.py", line 1054, in on_topMiddle_mouseDrag=0A return=0A= File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutE= ditor.py", line 1023, in doResize=0A globalPosition =3D wx.GetMousePosit= ion()=0A File "C:\Python23\lib\UserDict.py", line 19, in __getitem__=0A = def __getitem__(self, key): return self.data[key]=0AKeyError=0ATraceback (= most recent call last):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\= widget.py", line 408, in _dispatch=0A handler(background, aWxEvent)=0A = File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEdi= tor=0A.py", line 1054, in on_topMiddle_mouseDrag=0A return=0A File "C:\= Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py= ", line 1023, in doResize=0A globalPosition =3D wx.GetMousePosition()=0A= File "C:\Python23\lib\UserDict.py", line 19, in __getitem__=0A def __g= etitem__(self, key): return self.data[key]=0AKeyError=0ATraceback (most rec= ent call last):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.p= y", line 408, in _dispa=0Atch=0A handler(background, aWxEvent)=0A File = "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor= =0A.py", line 1054, in on_topMiddle_mouseDrag=0A return=0A File "C:\Pyt= hon23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", = line 1023, in doResize=0A globalPosition =3D wx.GetMousePosition()=0A F= ile "C:\Python23\lib\UserDict.py", line 19, in __getitem__=0A def __geti= tem__(self, key): return self.data[key]=0AKeyError=0ATraceback (most recent= call last):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py",= line 408, in _dispa=0Atch=0A handler(background, aWxEvent)=0A File "C:= \Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.p= y", line 1054, in on_topMiddle_mouseDrag=0A return=0A File "C:\Python23= \Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line = 1023, in doResize=0A globalPosition =3D wx.GetMousePosition()=0A File "= C:\Python23\lib\UserDict.py", line 19, in __getitem__=0A def __getitem__= (self, key): return self.data[key]=0AKeyError=0ATraceback (most recent call= last):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line= 408, in _dispa=0Atch=0A handler(background, aWxEvent)=0A File "C:\Pyth= on23\Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", l= ine 1054, in on_topMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\= site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1023,= in doResize=0A globalPosition =3D wx.GetMousePosition()=0A File "C:\Py= thon23\lib\UserDict.py", line 19, in __getitem__=0A def __getitem__(self= , key): return self.data[key]=0AKeyError=0ATraceback (most recent call last= ):=0A File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line 408,= in _dispa=0Atch=0A handler(background, aWxEvent)=0A File "C:\Python23\= Lib\site-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1= 054, in on_topMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-= packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1023, in d= oResize=0A globalPosition =3D wx.GetMousePosition()=0A File "C:\Python2= 3\lib\UserDict.py", line 19, in __getitem__=0A def __getitem__(self, key= ): return self.data[key]=0AKeyError=0ATraceback (most recent call last):=0A= File "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, in _= dispa=0Atch=0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\s= ite-packages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1054, = in on_topMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-packa= ges\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1023, in doResi= ze=0A globalPosition =3D wx.GetMousePosition()=0A File "C:\Python23\lib= \UserDict.py", line 19, in __getitem__=0A def __getitem__(self, key): re= turn self.data[key]=0AKeyError=0ATraceback (most recent call last):=0A Fil= e "C:\PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, in _dispa= =0Atch=0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\site-p= ackages\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1054, in on= _topMiddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-packages\P= ythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1023, in doResize=0A= globalPosition =3D wx.GetMousePosition()=0A File "C:\Python23\lib\User= Dict.py", line 19, in __getitem__=0A def __getitem__(self, key): return = self.data[key]=0AKeyError=0ATraceback (most recent call last):=0A File "C:= \PYTHON23\lib\site-packages\PythonCard\widget.py", line 408, in _dispa=0Atc= h=0A handler(background, aWxEvent)=0A File "C:\Python23\Lib\site-packag= es\PythonCard\tools\layoutEditor\layoutEditor=0A.py", line 1054, in on_topM= iddle_mouseDrag=0A return=0A File "C:\Python23\Lib\site-packages\Python= Card\tools\layoutEditor\layoutEditor=0A.py", line 1023, in doResize=0A g= lobalPosition =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.= py", line 19, in __getitem__=0A def __getitem__(self, key): return self.= data[key]=0AKeyError=0ATraceback (most recent call last):=0A File "C:\PYTH= ON23\lib\site-packages\PythonCard\widget.py", line 408, in _dispa=0Atch=0A = handler(background, aWxEvent)=0A File "C:\Python23\Lib\site-packages\Py= thonCard\tools\layoutEditor\layoutEditor=0A.py", line 1054, in on_topMiddle= _mouseDrag=0A return=0A File "C:\Python23\Lib\site-packages\PythonCard\= tools\layoutEditor\layoutEditor=0A.py", line 1023, in doResize=0A global= Position =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", = line 19, in __getitem__=0A def __getitem__(self, key): return self.data[= key]=0AKeyError=0ATraceback (most recent call last):=0A File "C:\PYTHON23\= lib\site-packages\PythonCard\widget.py", line 408, in _dispa=0Atch=0A ha= ndler(background, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonC= ard\tools\layoutEditor\layoutEditor=0A.py", line 1054, in on_topMiddle_mous= eDrag=0A return=0A File "C:\Python23\Lib\site-packages\PythonCard\tools= \layoutEditor\layoutEditor=0A.py", line 1023, in doResize=0A globalPosit= ion =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", line = 19, in __getitem__=0A def __getitem__(self, key): return self.data[key]= =0AKeyError=0ATraceback (most recent call last):=0A File "C:\PYTHON23\lib\= site-packages\PythonCard\widget.py", line 408, in _dispa=0Atch=0A handle= r(background, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\= tools\layoutEditor\layoutEditor=0A.py", line 1054, in on_topMiddle_mouseDra= g=0A return=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\lay= outEditor\layoutEditor=0A.py", line 1023, in doResize=0A globalPosition = =3D wx.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, = in __getitem__=0A def __getitem__(self, key): return self.data[key]=0AKe= yError=0ATraceback (most recent call last):=0A File "C:\PYTHON23\lib\site-= packages\PythonCard\widget.py", line 408, in _dispa=0Atch=0A handler(bac= kground, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\tools= \layoutEditor\layoutEditor=0A.py", line 1054, in on_topMiddle_mouseDrag=0A = return=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEd= itor\layoutEditor=0A.py", line 1023, in doResize=0A globalPosition =3D w= x.GetMousePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, in __= getitem__=0A def __getitem__(self, key): return self.data[key]=0AKeyErro= r=0ATraceback (most recent call last):=0A File "C:\PYTHON23\lib\site-packa= ges\PythonCard\widget.py", line 408, in _dispa=0Atch=0A handler(backgrou= nd, aWxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layo= utEditor\layoutEditor=0A.py", line 1054, in on_topMiddle_mouseDrag=0A re= turn=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\= layoutEditor=0A.py", line 1023, in doResize=0A globalPosition =3D wx.Get= MousePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, in __getit= em__=0A def __getitem__(self, key): return self.data[key]=0AKeyError=0AT= raceback (most recent call last):=0A File "C:\PYTHON23\lib\site-packages\P= ythonCard\widget.py", line 408, in _dispa=0Atch=0A handler(background, a= WxEvent)=0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEdi= tor\layoutEditor=0A.py", line 1054, in on_topMiddle_mouseDrag=0A return= =0A File "C:\Python23\Lib\site-packages\PythonCard\tools\layoutEditor\layo= utEditor=0A.py", line 1023, in doResize=0A globalPosition =3D wx.GetMous= ePosition()=0A File "C:\Python23\lib\UserDict.py", line 19, in __getitem__= =0A def __getitem__(self, key): return self.data[key]=0AKeyError=0A=0A = =0A--=0AJohn Henry=0A=0A |
From: <kc1...@ya...> - 2006-11-07 16:31:17
|
Well, I was asked "to be brave" and list what I *like to see* and that's wh= at I did. It has nothing to do with whether it will cost $600 or not.=0A= =0AGetting a quick start from the resource editor is okay. The problem is = that the resource editor in Pythoncard is not very usable even for that.=0A= =0AAnd regarding Dabo, yes, I am looking at that. The issue, of course, is= that PythonCard really does work - and pretty stable and usable (other tha= n the resourceeditor), and I am very productive with it. I just like to se= e that the project continues.=0A=0A=0A=0A=0AReply to message by Fred Sells = Nov 6 2006 5:34PM=0A=0A=0A=0A=0A=0A=0AA gazillion years ago we built an X= windows tool similar to PythonCard. We=0Afinally discovered that most deve= lopers preferred to edit their resource=0Afiles directly, after using the G= UI Builder to get a quick start.=0A=0ASo hats off to PythonCard, If you wa= nt JBuilder, pay the $600. =0A--=0AJohn Henry=0A=0A=0A |
From: <al...@tw...> - 2006-11-07 16:27:33
|
[Sorry - I replied earlier, but I'm having trouble getting mail through ....= ] kc1...@ya... wrote: > I fully recognize that Pythoncard is an OSS project and I can't =20 > thank the developers enough for their efforts. I simply like =20 > Pythoncard too much that I hate to see it go away *because* " > the PythonCard developers have day jobs, partners, kids, etc which =20 > require occasional attention" :=3D) The biggest difficulty I have =20 > with Pythoncard as it stands has to do with the resourceeditor or =20 > shall I say, the resourceeditors. The "experimental" resource =20 > editor was a very nice improvement over the non-experimental version =20 > but it hasn't been updated beyond it's initial experimental stage. > True - but the new "layoutEditor" has been released (in =20 tools/resourceEditor/layoutEditor). It's been substantially changed - =20 including the use of a single (larger) pane for propery editing (all =20 props visible and editable simultaneously), mul;tiple component =20 selection, etc. > As it stands, I have to click the command window back and forth in =20 > order to use it. Eitherway, both resource editors are not very =20 > useful. I ended up using my text editor to do most of the work and =20 > use the resource editors just as a verification tool to see whether =20 > there's error with what I do. So, for a start, having a stable and =20 > usable resource editor would be a big help. > Please try out layoutEditor and tell me what you think (either on or =20 off-list). > Then there is the code generator (resource editor again). I found =20 > myself spend a lot of time keep looking up which event a particular =20 > control can handle. There is no reason why I can't be presented =20 > with a list of events a particular control can handle, and I click =20 > on the ones I want the code generator to create code for, and =20 > whoola, I get code stubs created for me. I've seen other resource =20 > generators do that kind of stuff. > The codeEditor does (something very like) that. Why would you want to =20 do that in the resourceEditor rather than the codeEditor ? (OK - I know why you might want a single, integrated editor for both =20 code and layout - but that's a bigger question :-) > By the same token, there is no reason why I have to keep looking up =20 > the attributes of controls. (Is it .text, or .stringSelected for =20 > combobox....). Again, I've used other resource editors where I can =20 > have code stub created for me automatically - rather then keep =20 > looking it up from code samples. > Yeah - need to think about that .... > And, yes, we need a better way (much better way) to handle sizers. =20 > I finally learned how to use wxsizer with Pythoncard but the present =20 > process is next to impossible to use when things are not behaving =20 > the way you think it should. > In the works - though a few months away yet ... > Again, I want to thank all the developers (past and present) for =20 > PythonCard. :=3D) > --=20 Alex Tweedly al...@tw... http://www.tweedly.net |
From: <ed...@le...> - 2006-11-07 03:33:53
|
kc1...@ya... wrote .. > I fully recognize that Pythoncard is an OSS project and I can't thank the > developers enough for their efforts. I simply like Pythoncard too much > that I hate to see it go away *because* " > the PythonCard developers have day jobs, partners, kids, etc which require > occasional attention" :=) > > The biggest difficulty I have with Pythoncard as it stands has to do with > the resourceeditor or shall I say, the resourceeditors. The "experimental" > resource editor was a very nice improvement over the non-experimental version > but it hasn't been updated beyond it's initial experimental stage. As > it stands, I have to click the command window back and forth in order to > use it. Eitherway, both resource editors are not very useful. I ended > up using my text editor to do most of the work and use the resource editors > just as a verification tool to see whether there's error with what I do. > So, for a start, having a stable and usable resource editor would be a > big help. > > Then there is the code generator (resource editor again). I found myself > spend a lot of time keep looking up which event a particular control can > handle. There is no reason why I can't be presented with a list of events > a particular control can handle, and I click on the ones I want the code > generator to create code for, and whoola, I get code stubs created for > me. I've seen other resource generators do that kind of stuff. Have you had a chance to look at Dabo? It addresses many of the concerns you expressed. It's quite actively being developed, and is growing in popularity among wxPython users looking for a simpler, more Pythonic approach to developing GUIs. It's been a few months since I've worked with PythonCard, but from what I remember, Dabo can do just about everything that PythonCard can, as well as a whole lot more. Our website is currently down, due to a major upgrade being done on our server (can you say 'reformat'? I knew you could!). But it should be back up within a day once I get all the kinks worked out with the change from Fedora to Ubuntu. But I at least wanted to point out that there is an alternative that might be what you are looking for. -- Ed Leafe |
From: Sells, F. <fr...@ad...> - 2006-11-07 01:33:58
|
A gazillion years ago we built an Xwindows tool similar to PythonCard. We finally discovered that most developers preferred to edit their resource files directly, after using the GUI Builder to get a quick start. So hats off to PythonCard, If you want JBuilder, pay the $600. |
From: <kc1...@ya...> - 2006-11-07 01:10:50
|
I fully recognize that Pythoncard is an OSS project and I can't thank the d= evelopers enough for their efforts. I simply like Pythoncard too much that= I hate to see it go away *because* "=0Athe PythonCard developers have day = jobs, partners, kids, etc which require occasional attention" :=3D) =0A=0A= The biggest difficulty I have with Pythoncard as it stands has to do with t= he resourceeditor or shall I say, the resourceeditors. The "experimental" = resource editor was a very nice improvement over the non-experimental versi= on but it hasn't been updated beyond it's initial experimental stage. As i= t stands, I have to click the command window back and forth in order to use= it. Eitherway, both resource editors are not very useful. I ended up us= ing my text editor to do most of the work and use the resource editors just= as a verification tool to see whether there's error with what I do. So, f= or a start, having a stable and usable resource editor would be a big help.= =0A=0AThen there is the code generator (resource editor again). I found my= self spend a lot of time keep looking up which event a particular control c= an handle. There is no reason why I can't be presented with a list of even= ts a particular control can handle, and I click on the ones I want the code= generator to create code for, and whoola, I get code stubs created for me.= I've seen other resource generators do that kind of stuff.=0A=0ABy the sa= me token, there is no reason why I have to keep looking up the attributes o= f controls. (Is it .text, or .stringSelected for combobox....). Again, I'= ve used other resource editors where I can have code stub created for me au= tomatically - rather then keep looking it up from code samples.=0A=0AAnd, y= es, we need a better way (much better way) to handle sizers. I finally lea= rned how to use wxsizer with Pythoncard but the present process is next to = impossible to use when things are not behaving the way you think it should.= =0A=0AAgain, I want to thank all the developers (past and present) for Pyth= onCard. :=3D)=0A=0A=0AOn Sunday 05 Nov 2006 15:43, kc106_2005-pythoncard@[= ...].com wrote:=0A> =0A> It would be ashame for PythonCard to go the way o= f the dinosours. I've=0A> looked at other alternatives (including wxPytho= n itself) and for my needs=0A> (a simple and productive package), PythonCa= rd fits very nicely. The others=0A> are all soooooo *complicated*.=0A> = =0A=0AAt the risk of sounding overly blunt, if PythonCard fits your needs n= icely, =0Awhat's missing from 0.8.2 that you would expect to see if we were= already at =0Aversion 1.0?=0A=0AIn common with most other OSS projects, th= e PythonCard developers have day =0Ajobs, partners, kids, etc which require= occasional attention. :-)=0A=0ADon't hold back - if you've got some though= ts for new features and/or =0Aenhancements, please share them.=0A=0A=0A-- = =0A=0ARegards=0A=0APhil Edwards=0ABrighton, UK =0A--=0AJohn Henry=0A=0A |
From: Phil E. <ph...@li...> - 2006-11-07 00:24:23
|
On Sunday 05 Nov 2006 15:43, kc1...@ya... wrote: > > It would be ashame for PythonCard to go the way of the dinosours. I've > looked at other alternatives (including wxPython itself) and for my needs > (a simple and productive package), PythonCard fits very nicely. The others > are all soooooo *complicated*. > At the risk of sounding overly blunt, if PythonCard fits your needs nicely, what's missing from 0.8.2 that you would expect to see if we were already at version 1.0? In common with most other OSS projects, the PythonCard developers have day jobs, partners, kids, etc which require occasional attention. :-) Don't hold back - if you've got some thoughts for new features and/or enhancements, please share them. -- Regards Phil Edwards Brighton, UK |
From: hwphillips <bu...@gm...> - 2006-11-05 23:25:18
|
kc1...@ya... wrote: > Has Pythoncard development been haulted? I see messages from 2 years ago that we will be seeing 1.0 "soon" and yet it's now late 2007 and there doesn't seem to be much activities going on. > > It would be ashame for PythonCard to go the way of the dinosours. I've looked at other alternatives (including wxPython itself) and for my needs (a simple and productive package), PythonCard fits very nicely. The others are all soooooo *complicated*. > > -- > John Henry > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 As far as I know it's late 2006. But I wonder if there will be any further development too. |
From: <kc1...@ya...> - 2006-11-05 15:43:46
|
Has Pythoncard development been haulted? I see messages from 2 years ago t= hat we will be seeing 1.0 "soon" and yet it's now late 2007 and there doesn= 't seem to be much activities going on.=0A=0AIt would be ashame for PythonC= ard to go the way of the dinosours. I've looked at other alternatives (inc= luding wxPython itself) and for my needs (a simple and productive package),= PythonCard fits very nicely. The others are all soooooo *complicated*.=0A= =0A--=0AJohn Henry=0A=0A |
From: <kc1...@ya...> - 2006-11-05 15:38:40
|
You need to include all of the resource files in your py2exe configuration = files - not just the .c files.=0A=0A=0A=0A****************************=0A= =0AI am trying to use py2exe to create a exe file for my program. I get the= =0Afollowing errors:=0A=0ATraceback (most recent call last):=0A File "LBV.= py", line 581, in <module> =0A File "PythonCard\model.pyc", line 366, in _= _init__=0A File "PythonCard\resource.pyc", line 45, in __init__=0A File "= PythonCard\util.pyc", line 39, in readAndEvalFile=0ATypeError: coercing to = Unicode: need string or buffer, NoneType found=0ATraceback (most recent cal= l last):=0A File "LBV.py", line 587, in <module> =0A File "PythonCard\mod= el.pyc", line 366, in __init__=0A File "PythonCard\resource.pyc", line 45,= in __init__=0A File "PythonCard\util.pyc", line 39, in readAndEvalFile=0A= TypeError: coercing to Unicode: need string or buffer, NoneType found=0A=0A= Does anybody recognize error and know how to fix it?=0A=0AThanks=0A=0A-- = =0Aefil si doog =0A--=0AJohn Henry=0A=0A |
From: Andy T. <an...@ha...> - 2006-11-05 03:00:55
|
Brian Debuire wrote: > >> I imagine that PythonCard reads in your .rsrc file and evals it. It >> doesn't seem to be finding the file (probably because it's in your >> .exe and it's not looking there.) I don't know enough about py2exe or >> PythonCard to help you solve the problem, but if you look at the code >> in util.py for readAndEvalFile, and go over the py2exe docs you should >> be able to figure out what's wrong. I suspect you need to get it to >> find the file when it opens it using the mechanism in readAndEvalFile. >> Please tell me how it goes. >> >> -Dan >> > > Thats correct. I had the same problem or something like that... I think you > should manually set the path of the app's scripts. I dont have some sample > code at hand right now... but I hope this idea help u a bit. > > Brian > All of the collective py2exe wisdom is in the mailing list archives. Alternatively the readme file accompanying the minimalStandalone sample gives instructions on bundling your PythonCard application with py2exe; http://pythoncard.sourceforge.net/samples/minimalStandalone.html Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Brian D. <deb...@ho...> - 2006-11-04 20:46:23
|
>I imagine that PythonCard reads in your .rsrc file and evals it. It >doesn't seem to be finding the file (probably because it's in your >.exe and it's not looking there.) I don't know enough about py2exe or >PythonCard to help you solve the problem, but if you look at the code >in util.py for readAndEvalFile, and go over the py2exe docs you should >be able to figure out what's wrong. I suspect you need to get it to >find the file when it opens it using the mechanism in readAndEvalFile. >Please tell me how it goes. > >-Dan > Thats correct. I had the same problem or something like that... I think you should manually set the path of the app's scripts. I dont have some sample code at hand right now... but I hope this idea help u a bit. Brian _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
From: Dan E. <dan...@gm...> - 2006-11-04 12:46:40
|
I'm sure the people on this list have a way of writing tests for PythonCard applications. What do you do to test your PythonCard apps? -Dan |
From: Dan E. <dan...@gm...> - 2006-11-04 12:44:12
|
On 11/1/06, Wesley Phillips <bu...@gm...> wrote: > I am trying to use py2exe to create a exe file for my program. I get the > following errors: > > Traceback (most recent call last): > File "LBV.py", line 587, in <module> > File "PythonCard\model.pyc", line 366, in __init__ > File "PythonCard\resource.pyc", line 45, in __init__ > File "PythonCard\util.pyc", line 39, in readAndEvalFile > TypeError: coercing to Unicode: need string or buffer, NoneType found > > Does anybody recognize error and know how to fix it? I imagine that PythonCard reads in your .rsrc file and evals it. It doesn't seem to be finding the file (probably because it's in your .exe and it's not looking there.) I don't know enough about py2exe or PythonCard to help you solve the problem, but if you look at the code in util.py for readAndEvalFile, and go over the py2exe docs you should be able to figure out what's wrong. I suspect you need to get it to find the file when it opens it using the mechanism in readAndEvalFile. Please tell me how it goes. -Dan |
From: Dan E. <dan...@gm...> - 2006-11-02 17:20:32
|
On 11/1/06, Jussi Salmela <jus...@pp...> wrote: > Yes. Here's an example: > > self.components.HtmlWindow.text = open('BPMHelp.html').read() Thanks Jussi, I tried that and it worked great. I had tried using the .txt property earlier with no luck, but I must have done something else wrong. Thanks for the help! -Dan |
From: <kc1...@ya...> - 2006-11-01 22:17:12
|
In my quest to try to understand how to use the very confusing WX sizers in= Pythoncard, I came up with this example. I hope that it's useful to other= s.=0A=0A########## Code ################=0A#!/usr/bin/python=0A=0A"""=0A__v= ersion__ =3D "$Revision: 1.5 $"=0A__date__ =3D "$Date: 2004/04/30 16:26:12 = $"=0A"""=0A=0Afrom PythonCard import model=0A=0Aimport wx=0A=0Aclass MyBack= ground(model.Background):=0A=0A def setupSizers(self):=0A=0A comp= =3D self.components=0A=0A #Just think of sizers as component contai= ners that knows how to resize itself (if you set them up correctly)=0A=0A = sizerVert1 =3D wx.BoxSizer(wx.VERTICAL)=0A sizerVert2 =3D wx.B= oxSizer(wx.VERTICAL)=0A sizerVert3 =3D wx.BoxSizer(wx.VERTICAL)=0A = =0A sizerHori1 =3D wx.BoxSizer(wx.HORIZONTAL)=0A sizerH= ori2 =3D wx.StaticBoxSizer(comp.StaticBox1, wx.HORIZONTAL)=0A sizerH= ori3 =3D wx.BoxSizer(wx.HORIZONTAL)=0A=0A btnFlags =3D wx.LEFT | wx.= ALIGN_BOTTOM=0A leftFlags =3D wx.LEFT | wx.TOP | wx.ALIGN_LEFT=0A = rightFlags =3D wx.LEFT | wx.TOP | wx.ALIGN_RIGHT=0A=0A # 2nd ar= gument to the .Add function controls how many "share" of the whole area thi= s entry takes up=0A # A 0 means minimal space=0A # A 1 means = if the other entries are all 0, then it takes up 100%=0A # A "0 1 1"= means the 1st entry takes up minimum space, the other 2 entries shares the= rest of the spaces equally=0A # A "1 1 2" means the 3rd entry takes= up 50% of the space, whereas the other 2 entries shares the remaining 50%= =0A =0A # Place the 2 buttons in a horizontal sizer=0A = sizerHori1.Add(comp.Button2, 0, btnFlags, 5)=0A sizerHori1.Add((5, = 5), 0) # space between the buttons=0A sizerHori1.Add(comp.Button1, = 0, btnFlags, 5)=0A sizerHori1.Add((5, 5), 0) # space between the bu= tton and RHS of the window border=0A=0A # Place all of the buttons i= n a vertical sizer=0A # This sizer is necessary to control vertical = placement of the buttons=0A sizerVert2.Add((5, 5), 0) # space on th= e top side (between the button and the textarea=0A sizerVert2.Add(si= zerHori1, 1, rightFlags)=0A sizerVert2.Add((5, 5), 0) # space on th= e bottom separating it from the bottom of the window=0A=0A # Begin w= orking with the TextArea=0A # This sizer is necessary to control ver= tical placement of the TextArea within the static box=0A sizerVert3.= Add((5, 5), 0) # space between the textarea and the top of the static box= =0A # The 1 is necessary so it will take up all of the spaces within= this sizer when the window is stretched=0A sizerVert3.Add(comp.Text= Area1 , 1, leftFlags | wx.EXPAND)=0A sizerVert3.Add((5, 5), 0) # sp= ace between the textarea and the bottom of the static box=0A=0A # Th= is sizer is necessary to control horizontal placement of the TextArea withi= n the static box=0A sizerHori2.Add((5, 5), 0) # space between the t= extarea and the LHS of the static box=0A # The 1 is necessary so it = will take up all of the spaces within this sizer when the window is stretch= ed=0A sizerHori2.Add(sizerVert3 , 1, leftFlags | wx.EXPAND)=0A = sizerHori2.Add((5, 5), 0) # space between the textarea and the RHS of th= e static box=0A=0A # Place the textarea in sizer sandwitched by spac= ers to the side of the window (10 pixels wide, 5 pixels tall)=0A siz= erHori3.Add((10, 5), 0) # space between the static box and the LHS of the = window=0A sizerHori3.Add(sizerHori2, 1, leftFlags | wx.EXPAND)=0A = sizerHori3.Add((10, 5), 0) # space between the static box and the RHS= of the window=0A=0A # Divide up the main window by two sizers=0A = sizerVert1.Add(sizerHori3, 2, leftFlags | wx.EXPAND)=0A sizerVe= rt1.Add((5, 5), 0) # space between the staticbox and the buttons=0A = sizerVert1.Add(sizerVert2, 0, rightFlags)=0A sizerVert1.Add((5, 5),= 0) # space between the buttons and the bottom of the window=0A sel= f.sizerVert1 =3D sizerVert1=0A=0A sizerVert1.Fit(self)=0A siz= erVert1.SetSizeHints(self)=0A self.panel.SetSizer(sizerVert1)=0A = self.panel.SetAutoLayout(1)=0A self.panel.Layout()=0A =0A= self.Layout() # Not sure if this is necessary but it's suppose to = force an initial resize event=0A =0A #self.visible =3D True= =0A=0A def on_initialize(self, event):=0A # if you have any initi= alization=0A # including sizer setup, do it here=0A self.setu= pSizers()=0A=0A=0Aif __name__ =3D=3D '__main__':=0A app =3D model.Applic= ation(MyBackground)=0A app.MainLoop()=0A=0A=0A######## resource ########= ########=0A{'application':{'type':'Application',=0A 'name':'Templa= te',=0A 'backgrounds': [=0A {'type':'Background',=0A 'name':= 'bgTemplate',=0A 'title':'Standard Template with File->Exit menu',= =0A 'size':(349, 263),=0A 'style':['resizeable'],=0A=0A = 'menubar': {'type':'MenuBar',=0A 'menus': [=0A {'= type':'Menu',=0A 'name':'menuFile',=0A 'label':'&Fi= le',=0A 'items': [=0A {'type':'MenuItem',=0A = 'name':'menuFileExit',=0A 'label':'E&xit= ',=0A 'command':'exit',=0A },=0A = ]=0A },=0A ]=0A },=0A 'components': [= =0A=0A{'type':'StaticBox', =0A 'name':'StaticBox1', =0A 'position':(8= , 2), =0A 'size':(316, 159), =0A 'label':'StaticBox1', =0A },=0A= =0A{'type':'TextArea', =0A 'name':'TextArea1', =0A 'position':(20, 20= ), =0A 'size':(291, 128), =0A 'text':'TextArea1', =0A },=0A=0A{'ty= pe':'Button', =0A 'name':'Button1', =0A 'position':(247, 169), =0A = 'label':'Button1', =0A },=0A=0A{'type':'Button', =0A 'name':'Button2= ', =0A 'position':(167, 169), =0A 'label':'Button2', =0A },=0A=0A]= # end components=0A} # end background=0A] # end backgrounds=0A} }=0A=0A = =0A--=0AJohn Henry=0A=0A |
From: Wesley P. <bu...@gm...> - 2006-11-01 20:08:11
|
I am trying to use py2exe to create a exe file for my program. I get the following errors: Traceback (most recent call last): File "LBV.py", line 581, in <module> File "PythonCard\model.pyc", line 366, in __init__ File "PythonCard\resource.pyc", line 45, in __init__ File "PythonCard\util.pyc", line 39, in readAndEvalFile TypeError: coercing to Unicode: need string or buffer, NoneType found Traceback (most recent call last): File "LBV.py", line 587, in <module> File "PythonCard\model.pyc", line 366, in __init__ File "PythonCard\resource.pyc", line 45, in __init__ File "PythonCard\util.pyc", line 39, in readAndEvalFile TypeError: coercing to Unicode: need string or buffer, NoneType found Does anybody recognize error and know how to fix it? Thanks -- efil si doog |
From: Jussi S. <jus...@pp...> - 2006-11-01 15:41:39
|
Wesley Phillips wrote: > > I can not get my list object to respond to events. In the > initialization for the child window I have: > > self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.on_ItemSelected, \ > self.components.List1 ) > > I have a corresponding routine called /on_ItemSelected/ which never > gets executed. > > I can fill the list from the main window with no problem. Any ideas? > > -- > efil si doog I think you are doing wxPython again. With Pythoncard using a text field named TextField1 and a list List1 copying the selection to the text field is as simple as this (no self.Bind needed): def on_List1_select(self, event): self.components.TextField1.text = self.components.List1.stringSelection Cheers, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: Jussi S. <jus...@pp...> - 2006-11-01 14:06:51
|
Dan Eloff kirjoitti: > I'd like to use HtmlWindow to display text with some basic font > formatting. (I suppose I could use wx directly and use the styled text > control that you guys use in the code editor, but that may not be the > easiest solution) Is there any way to set the html content of the > widget to a string? > > -Dan > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > Yes. Here's an example: self.components.HtmlWindow.text = open('BPMHelp.html').read() Cheers, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |