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: Alex T. <al...@tw...> - 2006-07-18 22:39:25
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 17/07/2006 |
From: Alex T. <al...@tw...> - 2006-07-18 20:58:10
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 17/07/2006 |
From: Davy M. <daf...@gm...> - 2006-07-18 19:41:57
|
Hi Everyone, I am working with a developer to internationalise my Pythoncard application. A couple of questions: 1) Is there documentation on the String Editor? - I searched the site but couldn't find much. 2) We would like non-Programmers to translate if possible. Is there a tool that presents the visible text from the resource file in a simple form for translation? Thanks very much! Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ |
From: Luis M. G. <lu...@gm...> - 2006-07-18 18:34:19
|
Please forget my previous email. All my confussion is because I've been trying many things at once... Summing up: 1) setColumnHeadings() doesn't work for me.=20 2) Asigning a list of lists to columnHeadings works, but I cannot use = "wx.LIST_AUTOSIZE" as width parameter. If so, I get this error: sc.MultiColumnList2.columnHeadings =3D [ ['DESCRIPCION', = wx.LIST_AUTOSIZE], AttributeError: 'module' object has no attribute 'LIST_AUTOSIZE' ( Although it works if I specify a integer instead ). 3) SetColumnWidth() works (but with the same caveat I described above). Also, I noted that I get different behaviours depending on when I add = data to the multicolumnlist: For example, if I use the "SetColumnwith" method, I have to add the data = first. On the other hand, if I use an assignment to "columnHeadings", I must = add the data later. In any case, the width must be specified with integers. So the only problem I have now is that I cannot use "wx.LIST_AUTOSIZE" = nor "wx.LIST_FORMAT_LEFT" for aligning items, for example. Luis |
From: Luis M. G. <lu...@gm...> - 2006-07-18 13:52:36
|
Thank you Alex! I tried all what you said, with different results: >>The default for a PythonCard MulticolumnList is that all columns will = be wx.LIST_AUTOSIZE (and the last one will be expanded to fill remaining = space). =20 >> That's why the MultiColumn example works :-) I have two nulticolumnlists, one is created and filled on_initialize, = and the other is filled when I select a record on the first one = (invoices - invoice details). The first one shows records as you said (like wx.LIST_AUTOSIZE), but = the second one cuts the headers and items text with a narrower width. >> PythonCard doesn't support calling SetColumnWidth, though you might = be able to call wx directly.=20 Actually, it works. But only if I use it after adding data to the multicolumnlist (not = before). And it only accepts integers as width parameter, (not wx.LIST_AUTOSIZE = and not even a variable containing an int). >> What PythonCard does support is setting the column width as part of = setting the column headings=20 >> (see the documentation in the comments of multicolumnExample.py, or = look at components/multicolumnlist.py to see what it does, in = particular _setColumnHeadings() ).=20 The demo code documentation talks about "SetColumnHeadings", which as = far as I know is not implemented. If I use "columnHeadings" for assigning a list of lists as you said, = this is what I get: sc.MultiColumnList2.columnHeadings =3D [ ['DESCRIPCION', = wx.LIST_AUTOSIZE], ... AttributeError: 'module' object has no attribute 'LIST_AUTOSIZE' (Same result if I use "setColumnHeadings"). However, it works if I only add the headers text with = "columnHeadings". My source could wouldn't be of much help, because it uses a mysql = database to display data, but I can send it to you if you want... Anyway, I'll experiment a litle more to see what I'm doing wrong... Thanks! LUIS ----- Original Message -----=20 From: Alex Tweedly=20 To: Luis M. Gonzalez=20 Cc: Carl Wenrich ; pyt...@li...=20 Sent: Tuesday, July 18, 2006 9:41 AM Subject: Re: [Pythoncard-users] MultiColumnList: How to set columns = width? Luis M. Gonzalez wrote:=20 Hmmm... does it mean that I have to create "MultiColumnList1" as a = wx.ListCtrl from scratch? I tried that, but I get a "cannot import wxlistctrl" error message, = which I guess has something to do with the resource file... Anyway, how does the Multicolumn list sample work? It is a pure PythonCard app, with no wxPython tricks, and it works = just the way I want... The default for a PythonCard MulticolumnList is that all columns will = be wx.LIST_AUTOSIZE (and the last one will be expanded to fill remaining = space). That's why the MultiColumn example works :-) PythonCard doesn't support calling SetColumnWidth, though you might be = able to call wx directly. What PythonCard does support is setting the = column width as part of setting the column headings (see the = documentation in the comments of multicolumnExample.py, or look at = components/multicolumnlist.py to see what it does, in particular = _setColumnHeadings() ).=20 You set the columnHeadings by simply assigning to 'columnHeadings', = with either 1. a list of strings or 2. a list of lists - containing a string, and a width (# pixels or = wx.LIST_AUTOSIZE or 3. a list of lists - containing a string, a width (as above) and a = format (e.g. wx.LIST_FORMAT_LEFT) Note that if you look at the column headings (e.g.=20 print self.theList.columnHeadings you will see only the string (titles). You can also do print self.theList.GetColumnHeadingInfo() to see the complete (i.e. string, width, format) column heading data. So you can do things like the following (typed carefully, but not = tested) .... self.theList =3D self.components.myMultiColumnList # these can generally be either Tuples or Lists ... Lists used = here for ease of typing=20 # a simple list of strings self.theList.columnHeadings =3D ['name', 'address', 'age'] or # a list of lists - each contains the string the for heading text, = and an integer for the width self.theList.columnHeadings =3D [ ['name', wx.LIST_AUTOSIZE], ['address', = wx.LIST_AUTOSIZE], ['age', = wx.LIST_AUTOSIZE] ] etc. =20 If this doesn't help - could you send a sample code/rsrc file to = explain isn't working ... btw - If I'm reading the code properly, it doesn't fully support a mix = of auto-sized and fixed-size columns - but that isn't explicitly stated, = so you may need to experiment if you need to do that (it does support it = - but once you have set some cols to be fixed-width, the ability default = to AUTOSIZE is lost, and thereafter you need to always use the explicit = method to specify wx.LIST_AUTOSIZE). --=20 Alex Tweedly http://www.tweedly.net -------------------------------------------------------------------------= ----- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: = 17/07/2006 |
From: Alex T. <al...@tw...> - 2006-07-18 12:41:37
|
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 17/07/2006 |
From: Luis M. G. <lu...@gm...> - 2006-07-18 03:18:26
|
For some strange reason, it doesn't work that well with me... If I don't set column headers, it shows all the items in the columns = complete (no matter what width value I indicate). But if I set column headers, it gets messed up again. In any case, it doesn't matter if I set the width as 100 or 3000. The = columns always show the same width, with some strange behaviour too (it = takes more time to display data). Well, I'm too tired now... I'll try again tomorrow. Thank you! Luis ----- Original Message -----=20 From: Carl Wenrich=20 To: Luis M. Gonzalez=20 Sent: Monday, July 17, 2006 11:15 PM Subject: Re: [Pythoncard-users] MultiColumnList: How to set columns = width? i just tried self.components.ml.SetColumnWidth(0, 100) and it worked = just fine (ml is the name of a multicolumnlist component). |
From: Luis M. G. <lu...@gm...> - 2006-07-18 01:51:40
|
Hmmm... does it mean that I have to create "MultiColumnList1" as a = wx.ListCtrl from scratch? I tried that, but I get a "cannot import wxlistctrl" error message, = which I guess has something to do with the resource file... Anyway, how does the Multicolumn list sample work? It is a pure PythonCard app, with no wxPython tricks, and it works just = the way I want... ----- Original Message -----=20 From: Carl Wenrich=20 To: Luis M. Gonzalez=20 Sent: Monday, July 17, 2006 10:22 PM Subject: Re: [Pythoncard-users] MultiColumnList: How to set columns = width? I think you're trying to use a feature that PythonCard doesn't = support, which is why I suggested going directly to wx. I don't think = you can use the Pythoncard reference (self.component.<whatever>), you = have to use the wx.<component name>.SetColumnWidth(col, width). Of = course you must have the "import wx" line at the top of the file. "Luis M. Gonzalez" <lu...@gm...> wrote: Dear Carl, Thank you very much for your reply! Note that I had tried that already, but I'm affraid something is = wrong... In the wxPython demo, which has three columns, I saw three lines as = follows: self.list.SetColumnWidth(0, wxLIST_AUTOSIZE) self.list.SetColumnWidth(1, wxLIST_AUTOSIZE) self.list.SetColumnWidth(2, 100) Since my multicolumnlist is named MultiComlumnList1, I tried this: for i in range(len(columns)): self.components.MultiColumnList2.SetColumnWidth(i, = wxLIST_AUTOSIZE) but it didn't work. My question is: Since I have to resort to pure wxPython, what else should I do? I added these lines at the top: from wxPython.wx import * from wxPython.lib.mixins.listctrl import wxColumnSorterMixin Are they necessary? Since I'm referring to a wx.listCtrl instead of a MultiColumnList = one, how should I espress the "SetColumnWidth" method? Sorry for these very basic questions... Thanks again and best regards, Luis ----- Original Message -----=20 From: Carl Wenrich=20 To: Luis M. Gonzalez=20 Sent: Monday, July 17, 2006 4:36 AM Subject: Re: [Pythoncard-users] MultiColumnList: How to set = columns width? wx.listCtrl.SetColumnWidth(col, width) "Luis M. Gonzalez" <lu...@gm...> wrote:=20 Hi there, I have looked into the MultiColumnsList demo,=20 but I still can't figure out how to set columns widths so I can = display the full text of each one. Ideally, I'd like each column width to be as long as the longest = item contained in it. How can I do it? Any hint would be highly appreciated... Luis = -------------------------------------------------------------------------= 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Pythoncard-users mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: Kevin A. <al...@se...> - 2006-07-18 00:20:25
|
On Jul 16, 2006, at 7:49 PM, Ron Stephens wrote: > > Hello Kevin, > > I do a weekly podcast about Python subjects. If it's OK with you, I > would like to use the audio from your talk at PyCon 2005 (which can > be found online at the PyCon website) in an upcoming podcast about > PythonCard. I would edit it a little and make it compatible with > the audio of the rest of the podcast, in which I would walk through > a tutorial and just give my thoughts and comments about how easy > PythonCard is to learn to use. I do use PythonCard routinely for > simple GUI's for inputting data into my scripts. The podcast series > is mainly for people who are learning Python and can be found at > www.awaretek.com/python/index.html > > Ron Stephens > Fine with me. If I remember correctly all the Pycon stuff has an open source type usage license, so just look at what it says on the site. Thanks, ka |
From: Alex T. <al...@tw...> - 2006-07-17 21:12:22
|
Alex Tweedly wrote: >Brian Debuire wrote: > > > >>Hi everyone... >> >>I wonder... the button problem in the resource editor is a wxPyhton >>problem???? or a Python2.4 problem??? >> >>I noticed this when I migrated to Python2.4... >> >>This is very annoying... >> >>Although... using the layout editor the dialog "You double clicked please >>dont" appears always when trying to click outside a button... >> >> >> Just to explain the background to that "You have double-clicked" message ..... this dialog is put up when the editor gets a mouse event which is from a control, but the co-ordinates that are associated with the event are not within the bounding rectangle of the control. This used to happen around March/April last year, I think it was prior to 0.8.1 being released; and I put in this check and dialog, followed by a return from the handler. It always (then) seemed to happen on the mouseDown immediately after double-clicking on a button (which is not an action that is used for any purpose, just a bad habit I had :-) ), and I eventually found that putting in an empty handler for on_mouseDoubleClick() seemed to fix it - but I left the check/dialog in there anyway. So if I can find out what triggers it, I should be able to either figure out why it's doing it, or perhaps add another empty handler for another event type. So I'd really like to get enough info to be able to reproduce it. I suspect it's not a common occurrence (either that or there are some very tolerant users out there), given the lack of complaints about it. You should be able to reduce the annoyance it causes by simply commenting out the dialog placement from if (not r.Inside(clientPosition)): self.panel.SetFocus() junk = dialog.alertDialog(self, "You double-clicked - please don't", 'a title') return and make it simply if (not r.Inside(clientPosition)): self.panel.SetFocus() ##junk = dialog.alertDialog(self, "You double-clicked - please don't", 'a title') return around line 700 of layoutEditor.py -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 14/07/2006 |
From: Davy M. <daf...@gm...> - 2006-07-17 19:42:15
|
Pythoncard powered Backup program. http://www.latedecember.com/sites/software/LDBackup/ This is a small simple project to encourage newbies to get involved in Open Source, learn more Python(card) and to give me some experience in running a project. It is also a handy tool which I have used for months to backup my files :-) Cross-platform support is high on the TODO list. Check out the LDBackup page for more details. Windows installer is nearly ready for release too but I held back on that one as this is a development release. One Mac User has expressed an interest so that's a start on the cross platform goal :-) Only tested on XP so far. Thanks, Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ |
From: Alex T. <al...@tw...> - 2006-07-17 16:57:08
|
Wesley Phillips wrote: >I am trying to enable a menu item from another menu item. I originally set a menu item enable to false and it shows up greyed out, which is good. When a user performs another menu action, the greyed out menu item is enabled. I get the following errors: > > File "C:\Python24\lib\site-packages\PythonCard\menu.py", line 204, in _dispatch > handler(background, aWxEvent) > File "C:\Documents and Settings\ko22931\workspace\PCard Test\ASAmp3\ASAmp3.py", line 175, in on_main_menuSelect_Directory_select > self.components.main_menuAdd_Info.enabled=True > File "C:\Python24\lib\site-packages\PythonCard\model.py", line 77, in __getattr__ > return self.data[key] >KeyError: 'main_menuAdd_Info' > >Any ideas why this will not work? > > > Menu items are not components, so you can't enable / disable them this way. You do this by self.menuBar.setEnabled('main_menuAdd_Info', True) assuming 'menuCommandsAutoRefresh' is the name of the menu item. You can also do getEnabled, or getChecked/setChecked, etc. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 14/07/2006 |
From: Alex T. <al...@tw...> - 2006-07-17 16:26:40
|
Brian Debuire wrote: >Hi everyone... > >I wonder... the button problem in the resource editor is a wxPyhton >problem???? or a Python2.4 problem??? > >I noticed this when I migrated to Python2.4... > >This is very annoying... > >Although... using the layout editor the dialog "You double clicked please >dont" appears always when trying to click outside a button... > >Hope this get fixed soon... > > I haven't seen this problem - could you please describe it (and your environment - OS, version of Python / wxPython / PythonCard, etc.) and the sequence of steps that leads up to it. Thanks -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 14/07/2006 |
From: Wesley P. <hw...@be...> - 2006-07-17 16:21:15
|
I am trying to enable a menu item from another menu item. I originally set a menu item enable to false and it shows up greyed out, which is good. When a user performs another menu action, the greyed out menu item is enabled. I get the following errors: File "C:\Python24\lib\site-packages\PythonCard\menu.py", line 204, in _dispatch handler(background, aWxEvent) File "C:\Documents and Settings\ko22931\workspace\PCard Test\ASAmp3\ASAmp3.py", line 175, in on_main_menuSelect_Directory_select self.components.main_menuAdd_Info.enabled=True File "C:\Python24\lib\site-packages\PythonCard\model.py", line 77, in __getattr__ return self.data[key] KeyError: 'main_menuAdd_Info' Any ideas why this will not work? |
From: Brian D. <deb...@ho...> - 2006-07-17 15:26:09
|
Hi everyone... I wonder... the button problem in the resource editor is a wxPyhton problem???? or a Python2.4 problem??? I noticed this when I migrated to Python2.4... This is very annoying... Although... using the layout editor the dialog "You double clicked please dont" appears always when trying to click outside a button... Hope this get fixed soon... Regards Brian _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |
From: Luis M. G. <lu...@gm...> - 2006-07-17 12:12:08
|
Dear Carl, Thank you very much for your reply! Note that I had tried that already, but I'm affraid something is = wrong... In the wxPython demo, which has three columns, I saw three lines as = follows: self.list.SetColumnWidth(0, wxLIST_AUTOSIZE) self.list.SetColumnWidth(1, wxLIST_AUTOSIZE) self.list.SetColumnWidth(2, 100) Since my multicolumnlist is named MultiComlumnList1, I tried this: for i in range(len(columns)): self.components.MultiColumnList2.SetColumnWidth(i, = wxLIST_AUTOSIZE) but it didn't work. My question is: Since I have to resort to pure wxPython, what else should I do? I added these lines at the top: from wxPython.wx import * from wxPython.lib.mixins.listctrl import wxColumnSorterMixin Are they necessary? Since I'm referring to a wx.listCtrl instead of a MultiColumnList one, = how should I espress the "SetColumnWidth" method? Sorry for these very basic questions... Thanks again and best regards, Luis ----- Original Message -----=20 From: Carl Wenrich=20 To: Luis M. Gonzalez=20 Sent: Monday, July 17, 2006 4:36 AM Subject: Re: [Pythoncard-users] MultiColumnList: How to set columns = width? wx.listCtrl.SetColumnWidth(col, width) "Luis M. Gonzalez" <lu...@gm...> wrote: Hi there, I have looked into the MultiColumnsList demo,=20 but I still can't figure out how to set columns widths so I can = display the full text of each one. Ideally, I'd like each column width to be as long as the longest = item contained in it. How can I do it? Any hint would be highly appreciated... Luis = -------------------------------------------------------------------------= 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Pythoncard-users mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: Luis M. G. <lu...@gm...> - 2006-07-17 05:30:21
|
Hi there, I have looked into the MultiColumnsList demo,=20 but I still can't figure out how to set columns widths so I can display = the full text of each one. Ideally, I'd like each column width to be as long as the longest item = contained in it. How can I do it? Any hint would be highly appreciated... Luis |
From: Ron S. <rd...@ma...> - 2006-07-17 02:50:06
|
Hello Kevin, I do a weekly podcast about Python subjects. If it's OK with you, I would like to use the audio from your talk at PyCon 2005 (which can be found online at the PyCon website) in an upcoming podcast about PythonCard. I would edit it a little and make it compatible with the audio of the rest of the podcast, in which I would walk through a tutorial and just give my thoughts and comments about how easy PythonCard is to learn to use. I do use PythonCard routinely for simple GUI's for inputting data into my scripts. The podcast series is mainly for people who are learning Python and can be found at www.awaretek.com/python/index.html Ron Stephens |
From: Kevin A. <al...@se...> - 2006-07-12 00:59:55
|
On Jul 11, 2006, at 3:57 PM, Martin wrote: > I was astonished by the simplicity of the turtle, and is the =20 > perfect base to learn PythonCard UI, because you can see right away =20= > what your code is doing, however, im trying to connect an external =20 > dialog to "remote control" the turtle, but it seems that the events =20= > are not reaching the main loop, what can i do? > (The example code was not changed in any way) > adj: code > > in the embebedd PyCrust: > > import turtleMover as tm > dlg =3D tm.MyDialog(None,t) #t is the default turtle > tm.visible =3D True > > The dialog appears, it's usable, but nothing happens :( > what i did wrong? what is missing? > how can i process the events of the custom dialog in the already =20 > running turtle example? > I dont know if the rsrc and the events code are ok. > > i need so much help :P (a poor n00b trying to learn) > > Thanks in advance > > --- > Mart=EDn Ren=E9 Vilugr=F3n > http://maul3r.blogspot.com > Patagonia Argentina > <turtleMover.py> > <turtleMover.rsrc.py> Your problem here is that you're trying to use a modal dialog. You =20 can get a result from the dialog, but if you want the experience to =20 be interactive, rather than using a dialog, just change your code so =20 that it is a child window instead and it won't be modal. You can make =20= references to the main window turtle from your child window. Create =20 the child window and keep a reference to it in the main window =20 on_initialize event handler. There are multiple samples that use =20 child windows. If you have a problem getting this to work I'm sure =20 someone on the list can provide the needed code tweaks. ka= |
From: Travis R. <rt...@vt...> - 2006-07-11 23:07:32
|
Hello, One possible way of doing this is to study some of the other examples =20= that handle UI events; such as "doodle" etc. --- Travis Rose rt...@vt... On Jul 11, 2006, at 6:57 PM, Martin wrote: > I was astonished by the simplicity of the turtle, and is the =20 > perfect base to learn PythonCard UI, because you can see right away =20= > what your code is doing, however, im trying to connect an external =20 > dialog to "remote control" the turtle, but it seems that the events =20= > are not reaching the main loop, what can i do? > (The example code was not changed in any way) > adj: code > > in the embebedd PyCrust: > > import turtleMover as tm > dlg =3D tm.MyDialog(None,t) #t is the default turtle > tm.visible =3D True > > The dialog appears, it's usable, but nothing happens :( > what i did wrong? what is missing? > how can i process the events of the custom dialog in the already =20 > running turtle example? > I dont know if the rsrc and the events code are ok. > > i need so much help :P (a poor n00b trying to learn) > > Thanks in advance > > --- > Mart=EDn Ren=E9 Vilugr=F3n > http://maul3r.blogspot.com > Patagonia Argentina > <turtleMover.py> > <turtleMover.rsrc.py> > > ----------------------------------------------------------------------=20= > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |
From: Martin <mar...@gm...> - 2006-07-11 22:57:17
|
I was astonished by the simplicity of the turtle, and is the perfect base = to learn PythonCard UI, because you can see right away what your code is d= oing, however, im trying to connect an external dialog to "remote control"= the turtle, but it seems that the events are not reaching the main loop, = what can i do? (The example code was not changed in any way) adj: code in the embebedd PyCrust: import turtleMover as tm dlg =3D tm=2EMyDialog(None,t) #t is the default turtle tm=2Evisible =3D True The dialog appears, it's usable, but nothing happens :( what i did wrong? what is missing? how can i process the events of the custom dialog in the already running t= urtle example? I dont know if the rsrc and the events code are ok=2E i need so much help :P (a poor n00b trying to learn) Thanks in advance --- Mart=EDn Ren=E9 Vilugr=F3n http://maul3r=2Eblogspot=2Ecom Patagonia Argentina |
From: Bernie H. <ber...@ut...> - 2006-07-11 06:08:30
|
Hi All, Just a note that "WxPython in Action" was featured on slashdot today. In addition to the glowing review of this reference text, a couple people gave a shout-out to pythoncard in the comments. http://books.slashdot.org/books/06/07/10/1352250.shtml Take care, BERNiE Bernie Hogan PhD Student, Department of Sociology Research Coordinator, NetLab University of Toronto |
From: <kc1...@ya...> - 2006-07-10 21:32:27
|
Hi list, Is there a way to set default choices when using the multipleChoiceDialog? I stepped through the code and didn't seem to see that it can be done... Thanks, -- John Henry |
From: Brian D. <deb...@ho...> - 2006-07-08 14:43:33
|
Hi everyone, I have problems... more like an alert message when my app starts.. it says that it can not load the icon file of the window... but it get to load it... but the message always appears. Any ideas??? Thanks in advance Brian _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Kevin A. <al...@se...> - 2006-07-07 18:36:44
|
On Jul 5, 2006, at 4:59 PM, Alex Tweedly wrote: > Steve Freitas wrote: > >> Hi, >> >> For debugging let's say I put a method "on_size(self, event)" in my >> class, and it prints some stuff. Well, I noticed when playing with >> model.Background.singleItemExpandingSizerLayout(), if I provide an >> on_size(), then the resizing doesn't happen. So I tried... >> >> class Test(model.Background): >> def on_initialize(self, event): >> self.singleItemExpandingSizerLayout() >> >> def on_size(self, event): >> print self.size, self.c.StaticBox1.size >> super(Test, self).on_size(self, event) # This didn't work >> model.Background.on_size(self, event) # Nor this >> >> > >> So when I want to respond to an event but then toss the event back up >> afterward for normal handling, how do I do that? >> >> >> > def on_size(self, event): > print self.size, self.c.StaticBox1.size > event.skip() > > Actually, event.Skip() also seems to work - not 100% sure which is > "correct" :-) mixedCase method names are synonyms for wx methods which are always CamelCase (C++ style) or they are PythonCard specific. In the PythonCard event dispatch, the alias is added as a convenience like so: aWxEvent.skip = aWxEvent.Skip This way you can consistently use mixedCase style method names in your PythonCard code. ka |