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: Dan E. <dan...@gm...> - 2006-11-01 13:47:31
|
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 |
From: Wesley P. <bu...@gm...> - 2006-10-30 18:09:56
|
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 |
From: hwphillips <bu...@ya...> - 2006-10-24 22:37:49
|
Jussi Salmela wrote: > I repost my answer because I first sent it using HTML causing it to get > garbled in the archives. > > Sorry! > > hwphillips wrote: > >>hwphillips wrote: >> >> >>>In pythoncard, I created a window with various widgets. Then I add a >>>wx.grid.Grid control using CreateGrid(). The grid appears on the window >>>with the rest of the widgets, I can put values in the cells. However, >>>the scroll bars do not work. Also, I can not select any cell with the >>>mouse. Help please and thanks. >>> >>> >>>------------------------------------------------------------------------- >>>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 >>> >> >>I used the grid in pyCard and everything works ok. I missed the sample >>for it at first. Still, the problem above exists, not sure why. >> >> > > > I don't quite get it when you at first say that 'everything works ok' > and then say that 'the problem above exists'. Could you be more specific > please: > > 1. Could your problems be environment/version related? The application in > http://personal.inet.fi/cool/operator/BPMDownload.html > uses the grid successfully. BPM runs on Windows XP Home SP2 using Python > 2.4.3, wxPython 2.6.3 and PythonCard 0.8.2. I meant that when I add a grid outside of python card, not in pythoncard > > 2. If you mean that the simpleGrid demo works but your program doesn't, > you should compare them to find the differences. There's bound to be > something because in this case the environment and versions are the same > for simpleGrid and your program. The demo does not refer to a grid created outside of pythoncard > > 3. "the scroll bars do not work" > In what way? Are they not visible. Are they visible but do not react > when you click the arrows or the empty space of the scroll bar. Can you > drag the 'thumb'? The grid is there completely, but I couldnot select cells or move the scroll bars. > > 4. "I can not select any cell with the mouse" > When I click a cell once the rectangle showing the focused cell goes to > that cell. When I now click that cell again the text in that cell is > selected i.e. is shown with a different background color emphasizing the > fact that the next keyboard operation modifies the whole text. If I hit > delete, the text is deleted. If I enter new text it replaces the > selection. Doesn't your program behave like this? no > > If you mean that you want the cell value to be selected and copied > somewhere when you click the cell, you need to do something like this: > > def on_ansGrid_leftClick(self, event): > print 'ansGrid leftClick' > r = event.GetRow() > c = event.GetCol() > print 'r, c', r, c > aCM1 = self.fr.test.items[self.fr.currItm].ansCount - 1 > last = aCM1 / self.columns > if r > last: > print 'r>last', r, last > elif r == last: > last = aCM1 % self.columns > if c > last: > print 'c>last', c, last > else: > print 'set text' > self.components.ansField.text = > self.components.ansGrid.GetCellValue(r, c) > self.components.ansField.SetFocus() > #event.Skip() > > > Cheers, > > Jussi > I suppose this really was a wxwidgets question since the pycard grid works perfectly, but the grid I created outside of pythoncard did not. Thanks |
From: Jussi S. <jus...@pp...> - 2006-10-23 20:19:36
|
I repost my answer because I first sent it using HTML causing it to get garbled in the archives. Sorry! hwphillips wrote: > hwphillips wrote: > >> In pythoncard, I created a window with various widgets. Then I add a >> wx.grid.Grid control using CreateGrid(). The grid appears on the window >> with the rest of the widgets, I can put values in the cells. However, >> the scroll bars do not work. Also, I can not select any cell with the >> mouse. Help please and thanks. >> >> >> ------------------------------------------------------------------------- >> 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 >> > > I used the grid in pyCard and everything works ok. I missed the sample > for it at first. Still, the problem above exists, not sure why. > > I don't quite get it when you at first say that 'everything works ok' and then say that 'the problem above exists'. Could you be more specific please: 1. Could your problems be environment/version related? The application in http://personal.inet.fi/cool/operator/BPMDownload.html uses the grid successfully. BPM runs on Windows XP Home SP2 using Python 2.4.3, wxPython 2.6.3 and PythonCard 0.8.2. 2. If you mean that the simpleGrid demo works but your program doesn't, you should compare them to find the differences. There's bound to be something because in this case the environment and versions are the same for simpleGrid and your program. 3. "the scroll bars do not work" In what way? Are they not visible. Are they visible but do not react when you click the arrows or the empty space of the scroll bar. Can you drag the 'thumb'? 4. "I can not select any cell with the mouse" When I click a cell once the rectangle showing the focused cell goes to that cell. When I now click that cell again the text in that cell is selected i.e. is shown with a different background color emphasizing the fact that the next keyboard operation modifies the whole text. If I hit delete, the text is deleted. If I enter new text it replaces the selection. Doesn't your program behave like this? If you mean that you want the cell value to be selected and copied somewhere when you click the cell, you need to do something like this: def on_ansGrid_leftClick(self, event): print 'ansGrid leftClick' r = event.GetRow() c = event.GetCol() print 'r, c', r, c aCM1 = self.fr.test.items[self.fr.currItm].ansCount - 1 last = aCM1 / self.columns if r > last: print 'r>last', r, last elif r == last: last = aCM1 % self.columns if c > last: print 'c>last', c, last else: print 'set text' self.components.ansField.text = self.components.ansGrid.GetCellValue(r, c) self.components.ansField.SetFocus() #event.Skip() Cheers, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: Jussi S. <jus...@pp...> - 2006-10-22 15:54:37
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> hwphillips wrote: <blockquote cite="midehdc27$v3p$1...@se..." type="cite"> <pre wrap="">hwphillips wrote: </pre> <blockquote type="cite"> <pre wrap="">In pythoncard, I created a window with various widgets. Then I add a wx.grid.Grid control using CreateGrid(). The grid appears on the window with the rest of the widgets, I can put values in the cells. However, the scroll bars do not work. Also, I can not select any cell with the mouse. Help please and thanks. ------------------------------------------------------------------------- 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 <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a> </pre> </blockquote> <pre wrap=""><!----> I used the grid in pyCard and everything works ok. I missed the sample for it at first. Still, the problem above exists, not sure why. </pre> </blockquote> I don't quite get it when you at first say that 'everything works ok' and then say that 'the problem above exists'. Could you be more specific please:<br> <br> 1. Could your problems be environment/version related? The application in<br> <a class="moz-txt-link-freetext" href="http://personal.inet.fi/cool/operator/BPMDownload.html">http://personal.inet.fi/cool/operator/BPMDownload.html</a><br> uses the grid succesfully. BPM runs on Windows XP Home SP2 using Python 2.4.3, wxPython 2.6.3 and PythonCard 0.8.2. <br> <br> 2. If you mean that the simpleGrid demo works but your program doesn't, you should compare them to find the differencies. There's bound to be something because in this case the environment and versions are the same for simpleGrid and your program.<br> <br> 3. "the scroll bars do not work"<br> In what way? Are they not visible. Are they visible but do not react when you click the arrows or the empty space of the scroll bar. Can you drag the 'thumb'?<br> <br> 4. "I can not select any cell with the mouse"<br> When I click a cell once the rectangle showing the focused cell goes to that cell. When I now click that cell again the text in that cell is selected i.e. is shown with a different background color emphasizing the fact that the next keyboard operation modifies the whole text. If I hit delete, the text is deleted. If I enter new text it replaces the selection. Doesn't your program behave like this?<br> <br> If you mean that you want the cell value to be selected and copied somewhere when you click the cell, you need to do something like this:<br> <br> def on_ansGrid_leftClick(self, event):<br> print 'ansGrid leftClick'<br> r = event.GetRow()<br> c = event.GetCol()<br> print 'r, c', r, c<br> aCM1 = self.fr.test.items[self.fr.currItm].ansCount - 1<br> last = aCM1 / self.columns<br> if r > last:<br> print 'r>last', r, last<br> elif r == last:<br> last = aCM1 % self.columns<br> if c > last:<br> print 'c>last', c, last<br> else:<br> print 'set text'<br> self.components.ansField.text = self.components.ansGrid.GetCellValue(r, c)<br> self.components.ansField.SetFocus()<br> #event.Skip() <br> <br> <br> Cheers,<br> <br> Jussi<br> <br> <pre class="moz-signature" cols="72">-- Jussi Salmela <a class="moz-txt-link-freetext" href="http://personal.inet.fi/cool/operator/">http://personal.inet.fi/cool/operator/</a> </pre> </body> </html> |
From: hwphillips <bu...@ya...> - 2006-10-21 14:50:04
|
hwphillips wrote: > In pythoncard, I created a window with various widgets. Then I add a > wx.grid.Grid control using CreateGrid(). The grid appears on the window > with the rest of the widgets, I can put values in the cells. However, > the scroll bars do not work. Also, I can not select any cell with the > mouse. Help please and thanks. > > > ------------------------------------------------------------------------- > 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 I used the grid in pyCard and everything works ok. I missed the sample for it at first. Still, the problem above exists, not sure why. |
From: hwphillips <bu...@ya...> - 2006-10-20 22:46:21
|
In pythoncard, I created a window with various widgets. Then I add a wx.grid.Grid control using CreateGrid(). The grid appears on the window with the rest of the widgets, I can put values in the cells. However, the scroll bars do not work. Also, I can not select any cell with the mouse. Help please and thanks. |
From: <kc1...@ya...> - 2006-10-17 22:12:39
|
I asked this question couple of times but for some reason, never got a resp= onse. Just to answer my own question (for others to read), I stumbled acro= ss this:=0A=0Ahttp://wiki.wxpython.org/index.cgi/PythonCardLayoutManagers= =0A=0Awhich contains a link to this:=0A=0Ahttp://wiki.wxpython.org/index.cg= i/UsingSizers=0A=0AI hope that it's useful to other PythonCard users.=0A=0A= Regards,=0A =0A--=0AJohn Henry=0A=0A |
From: Jussi S. <jus...@pp...> - 2006-10-06 08:45:17
|
I'll try to answer your question, though you never bothered to comment on my suggested "solution" to your earlier request concerning multilingual GUIs. Cullen Newsom wrote: > Anyone mind telling me how to get the name of a notebook page, from > <snip> > then from the created instance I would like to be able to do some thing > like: > on_initialize(self,event): > local_variable=my_page_name > > Thanks in advance, > > Cullen > > wxPython comes with the wxWidgets doc. Reading 5 minutes of the doc on wxNotebook, I've got this that seems to do the stuff: # self.GetParent() gives you the notebook nb = self.GetParent() # Print the current sheet label ie. name print nb.GetPageText(nb.GetSelection()) # Change it to something else # I know: you didn't ask, but I answer anyway nb.SetPageText(nb.GetSelection(), 'Characteristics of Raw Data') # Print it to be sure although the change show in the label print nb.GetPageText(nb.GetSelection()) Cheers, Jussi http://personal.inet.fi/cool/operator/ |
From: Jussi S. <jus...@pp...> - 2006-10-06 08:10:19
|
I'll try to answer your question, though you never bothered to comment on my suggested "solution" to your earlier request concerning multilingual GUIs. Cullen Newsom wrote: > So I have taken testNotebook.py and added some stuff. in one of the > child windows, I have: > def on_initialize(self, event): > self.parent=self.getParent() > > as mentioned in > Python24/Lib/site-packages/PythonCard/docs/html/walkthrough3.html > this is what I get: > I doubt walkthrough3 has got nothing to do with tabsheets, though the term childwindow appears in tabsheet terminology also. I had the same problem also. After a considerable number of hours wandering in total darkness I found the way that seems to work for me at least. In the initalizers for the individual tabsheets I do: # fr becomes the pointer to the wxframe window self.fr = self.GetParent().GetParent().GetParent() Then in my code I can say self.fr.showMsg(0, 'Maximum points per item can only be given for test type 2') when I want to use the message function showMsg defined in the "main" class which only has to know how to use the message field outside of the tab sheet area. Or: self.fr.maxPnts = 100 to set the value of the attribute maxPnts in the "main" class or: self.fr.test.readFromDisk(path) to refer to an instance of a separate Test class to use its readFromDisk method. Cheers, Jussi http://personal.inet.fi/cool/operator/ |
From: Liam C. <cy...@gm...> - 2006-10-06 06:49:22
|
Can you post all of you code please? www.rafb.net/paste Cullen Newsom wrote: > So I have taken testNotebook.py and added some stuff. in one of the > child windows, I have: > def on_initialize(self, event): > self.parent=self.getParent() > > as mentioned in > Python24/Lib/site-packages/PythonCard/docs/html/walkthrough3.html > this is what I get: > File > "C:\Python24\Lib\site-packages\InstrumentThing\testNotebook\CameraLinkTerminal.py", > line 41, in on_initialize > self.parent=self.getParent() > AttributeError: 'CameraLinkTerminal' object has no attribute 'getParent' > > I also tried: > self.parent=self.wx.Frame.GetParent() > and got: > AttributeError: 'CameraLinkTerminal' object has no attribute 'wx' > > I just need to get some variables from the parent, or if nothing else > read the pages name. > > Thanks, > Cullen > > |
From: Cullen N. <cn...@sa...> - 2006-10-05 18:32:15
|
So I have taken testNotebook.py and added some stuff. in one of the child windows, I have: def on_initialize(self, event): self.parent=self.getParent() as mentioned in Python24/Lib/site-packages/PythonCard/docs/html/walkthrough3.html this is what I get: File "C:\Python24\Lib\site-packages\InstrumentThing\testNotebook\CameraLinkTerminal.py", line 41, in on_initialize self.parent=self.getParent() AttributeError: 'CameraLinkTerminal' object has no attribute 'getParent' I also tried: self.parent=self.wx.Frame.GetParent() and got: AttributeError: 'CameraLinkTerminal' object has no attribute 'wx' I just need to get some variables from the parent, or if nothing else read the pages name. Thanks, Cullen -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |
From: Kael F. <kae...@gm...> - 2006-10-04 04:17:41
|
I though this would be easy... but now I think it might not be possible. Does anyone have any experience debugging a pythoncard app with pywrap? TIA, Kael |
From: Cullen N. <cn...@sa...> - 2006-10-03 23:04:02
|
Anyone mind telling me how to get the name of a notebook page, from the notebook page? For instance if when I create a new notebook page with a name like: GPIB0::4 or COM1 vis a vis: nb = model.childWindow(self.components.notebook, e3631a.e3631a) self.components.notebook.AddPage(nb, 'E3631A'+' on '+str(instrum), True) then from the created instance I would like to be able to do some thing like: on_initialize(self,event): local_variable=my_page_name Thanks in advance, Cullen -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |
From: <kc1...@ya...> - 2006-10-01 15:22:37
|
Sorry, wrong list.=0A =0A--=0AJohn Henry=0A=0A----- Original Message ----= =0AFrom: "kc1...@ya..." <kc1...@ya...= >=0ATo: pyt...@li...=0ASent: Friday, September 29= , 2006 3:01:09 PM=0ASubject: [OT] Looking for sample robots=0A=0AI know thi= s is OT but I am not having much luck looking elsewhere and I know there ar= e experts around here that might be able and willing to help.=0A=0AI have b= een a lone volunteer mentor in my kid's school for helping them with buildi= ng a Lego Robotic Team. I am not mechanical in nature (just good with anyt= hing electrical and programming oriented). Thanks to this activity, I have= learned just enough to get the kids to build a number of very fun projects= (thanks to Philo's web site). However, all of the projects we've done are= robots that, for the most part, move's around. I don't know how to teach = them to build things that would do something (like the ones required for th= e FIRST Lego Legue Competition). I've tried very hard to get other parents= involved but none of them stepped up onto the plate: ZERO, ZIPPO. It's ve= ry fustrating.=0A=0AI am pretty much at the limit of my capability to help = them. Does anybody has a sample robot that can run around and do something= ? I am really weak in building things that can show the kids how to transl= ate rotational motion of a motor into linear, longitudinal, or other motion= s. We built Philo's Peaucellier Cell but to be honest, I really didn't kno= w how to explain to the kids what was accomplished (!!!) We also built a g= rabber once and so at least we know how to run around and grab something.= =0A=0A=0A=0A Peaucellier Cell =0ASo, can anybody her= e give me a hand? We need Leocad samples of simple robots=0Athat uses diff= erent kinds of linkages to go around and do things.=0A=0ASorry for the OT m= essage=0A=0A=0A=0A--=0AJohn Henry=0A=0A=0A=0A=0A |
From: <kc1...@ya...> - 2006-09-29 22:01:15
|
I know this is OT but I am not having much luck looking elsewhere and I kno= w there are experts around here that might be able and willing to help.=0A= =0AI have been a lone volunteer mentor in my kid's school for helping them = with building a Lego Robotic Team. I am not mechanical in nature (just goo= d with anything electrical and programming oriented). Thanks to this activ= ity, I have learned just enough to get the kids to build a number of very f= un projects (thanks to Philo's web site). However, all of the projects we'= ve done are robots that, for the most part, move's around. I don't know ho= w to teach them to build things that would do something (like the ones requ= ired for the FIRST Lego Legue Competition). I've tried very hard to get ot= her parents involved but none of them stepped up onto the plate: ZERO, ZIPP= O. It's very fustrating.=0A=0AI am pretty much at the limit of my capabili= ty to help them. Does anybody has a sample robot that can run around and d= o something? I am really weak in building things that can show the kids ho= w to translate rotational motion of a motor into linear, longitudinal, or o= ther motions. We built Philo's Peaucellier Cell but to be honest, I really= didn't know how to explain to the kids what was accomplished (!!!) We als= o built a grabber once and so at least we know how to run around and grab s= omething.=0A=0A=0A=0A Peaucellier Cell =0ASo, can an= ybody here give me a hand? We need Leocad samples of simple robots=0Athat = uses different kinds of linkages to go around and do things.=0A=0ASorry for= the OT message=0A=0A=0A=0A--=0AJohn Henry=0A=0A |
From: <al...@tw...> - 2006-09-28 09:15:44
|
Quoting Cullen Newsom <cn...@sa...>: > Anyone using colored text in a TextArea or TextField ? > > Thanks, > CN > (Sorry about poor formatting - for some reason I can't send email, so =20 I'm doing this through an ugly webmail interface ....) Yes, I've used it in some apps, but beware it may not work on Mac (and =20 there may be other restrictions on other platforms - I didn't get to =20 try them all out). There was a thread on this topic back around =20 26/05/2006 - it's worth checking the thread if you are running into =20 any problems; my post that started it off said: The Mac OS X guidelines, indeed the OS provided controls, have some =20 restrictions on what they allow. Since wxWidgets uses these controls, =20 wxPython and PythonCard have the same restrictions. Currently those =20 restrictions are not reflected in the layoutEditor, which can lead =20 users to think there is a bug in the layoutEditor (and therefore =20 PythonCard in general). (btw - I wouldn't be at all surprised if there =20 were indeed bugs in PythonCard and/or the layoutEditor that exacerbate =20 these problems - but so far I haven't seen any confirmed cases). There probably are lots of such restrictions, but the ones I have =20 come across are - textfields (i.e. single line TextCtrl) does not support setting =20 the backgroundColour - textarea (i.e. multi-line TextCtrl) does not support alignment =20 (other than left) - button does not support setting foregroundColour - button does not (adequately) support setting backgroundColour (the rectangle "behind" the button is set, but not within =20 the button itself - ugly !!) It would be good to not only document this somewhere, but (since it =20 will be an easily overlooked footnote in the docs) also make it more =20 obvious to a user when they try to set properties that will not be =20 reasonably honoured cross-platform. This would be especially helpful =20 if they are setting a property while on a system that doesn't really =20 support it - but I think should be done anyway to help people design =20 cross-platform apps if they so desire. Would a dialog / preference be too intrusive ? Something like You have set a property that is not supported on your current platform. [ ] Don't give this warning again. ( OK ) and also same thing but "... supported on some other platforms." If that was a preference - should it be per-user, or per project ? Or would it be better to simply document it as prominently as we can ? --=20 Alex Tweedly al...@tw... http://www.tweedly.net |
From: Cullen N. <cn...@sa...> - 2006-09-27 23:36:58
|
Has anyone tried to use Japanese Fonts? Had success? Thanks, Cullen -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |
From: Cullen N. <cn...@sa...> - 2006-09-26 20:24:40
|
Anyone using colored text in a TextArea or TextField ? Thanks, CN -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |
From: Jussi S. <jus...@pp...> - 2006-09-25 18:35:50
|
Cullen Newsom kirjoitti: > First question, I would like to make a multilingual GUI that the user=20 > selects the language at runtime. I had a bit of trouble using variable= s=20 > =20 My approach may not be quite what you are looking for because it does=20 the language selection at application start time. It does not use locale=20 information. Instead the resource file to be used is given on the=20 starting command line. The application is here: http://personal.inet.fi/cool/operator/ATrickCardGameDownload.html and here is the description of how to use the Finnish and English=20 versions and what needs to be done to translate the application into Fren= ch: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ATrickCardGame comes with a resource file for both English and Finnish.=20 To start with the English user interface give: python ATrickCardGame.pyw ATrickCardGame.English.rsrc.py and with the Finnish UI give: python ATrickCardGame.pyw ATrickCardGame.Finnish.rsrc.py But what if you don't want English or Finnish, but let's say French.=20 Here's what you do: 1. Make a copy of the files EnglishAbout.txt EnglishHelp.txt as files named FrenchAbout.txt FrenchHelp.txt respectively and translate them into French. 2. Make a copy of the file ATrickCardGame.Finnish.rsrc.py as a new file named ATrickCardGame.French.rsrc.py 3. With the PythonCard Layout Editor translate every label, menutext etc. from Finnish to French. Every string in that file that you don't understand is in Finnish and must be translated. As a guide you can=20 use the file ATrickCardGame.English.rsrc.py, which gives you the corresponding=20 term in English. 4. Voil=E0, your French GUI: python ATrickCardGame.pyw ATrickCardGame.French.rsrc.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Cheers, Jussi Salmela |
From: Cullen N. <cn...@sa...> - 2006-09-25 13:54:02
|
Hello, First, praise for the PythonCard developers. This is good stuff. First question, I would like to make a multilingual GUI that the user selects the language at runtime. I had a bit of trouble using variables in the PythonCard rsrc file. I have found several other ways to hack this in but nothing really stands out as a great idea. Any ideas? Second question, my PythonCard GUI app takes up 50% of my processor(s). LabView takes what's left, is there trick to make my little python(card) prog less greedy? That way LabView can have even more cycles! Thanks, Cullen -- |Cullen Newsom SUS Optics| |10905 Cash Road Stafford, Texas 77477| |cn...@sa... tel: 281.276.3737| |
From: Terrence B. <ba...@me...> - 2006-09-24 12:30:11
|
Title says all. How would one add a verticle scrollbar to a MultiColumnList? Also, how would one make the columns sortable for the MCL? |
From: Terrence B. <met...@gm...> - 2006-09-23 12:02:20
|
I am working on this: http://pythoncard.sourceforge.net/walkthrough2.html and instead of rewriting each function, I tried to alias them. However, that does not work. Can anyone explain why? Code below: #!/usr/bin/python import sys """ __version__ = "$Revision: 1.8 $" __date__ = "$Date: 2005/12/17 15:20:02 $" """ from PythonCard import model, dialog class Counter(model.Background): """ def __init__(self): self.initialValue = 666 """ def on_menuFileAbout_select(self, event): result = dialog.alertDialog(self, self.components.field1.text, 'Showing off') def valueDelta(self, delta): startValue = int(self.components.field1.text) endValue = startValue + delta self.components.field1.text = str(endValue) def on_incrBtn_mouseClick(self, event): self.valueDelta(1) def on_decrBtn_mouseClick(self, event): self.valueDelta(-1) def on_resetBtn_mouseClick(self, event): self.components.field1.text = str(222) """Either of these works: def on_menuIncr_select(self, event): # works: self.valueDelta(1) # works: self.on_incrBtn_mouseClick(event) but when I try to directly alias the function to another, it just hangs: """ on_menuIncr_select = on_incrBtn_mouseClick if __name__ == '__main__': app = model.Application(Counter) app.MainLoop() |
From: <kc1...@ya...> - 2006-09-21 18:07:34
|
I saw a message about the sizer. I posted a message before asking if anybody know where I can get more documentation on how to use sizer. Unfortunately, nobody responded. I assume it's because there are no documentation for that? If so, is there anything available that can teach me how to use the sizer - without reading the source code, I hope? Regards, -- John Henry |
From: <kc1...@ya...> - 2006-09-21 17:50:50
|
Hi list, My Pythoncard applications runs fine in most of the computers I tried (all Windows XP). However, with one or two of the machines, it looks horrible. The spacing and size is all wrong. I did not do anything fancy (no sizer or things of that sort) - just all of the default font's and spacings created by the resource editor. Is there something I am missing? Thanks -- John Henry |