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: 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: 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: 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-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: Ron S. <rd...@ma...> - 2006-07-19 16:51:49
|
On Jul 17, 2006, at 8:20 PM, Kevin Altis wrote: > > 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 Kevin, Thanks. I'll try to do a good job on a PythonCard podcast. Ron |