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: Terry M. <ter...@gl...> - 2008-03-27 20:23:44
|
Regards all, first time posting. I've figured out how to add menu items easily enough using PythonCard's menu.py module's appendMenuItem method. But the corresponding deleteMenuItem is only a stub. I can almost get the underlying wx._core's.Menu's DeleteItem or RemoveItem to work, but not quite ... I can't seem to get the parameters right, and wxPython is still rather daunting at this point. Any pointers to a faq, or a few lines of code if it's trivial, would be greatly appreciated. |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-03-26 22:21:15
|
On 26/03/2008 17:31, Phil Edwards wrote: > Phil Edwards wrote: >> Okay, probably not the nicest bit of code I've ever written, but it >> seems to do the trick: >> > > Extra brownie points for the first person to spot the bug in the code... :-) > > Well, my brain's fried after a day of wxPython frames, panels, grids and missing scrollbars. So I had to 'cheat' and run your code because I couldn't see anything. Works OK, apart from the mysterious: self.countValue = self.components.Gauge1.max + 1 which produces a Spinal Tap moment when you hit the stop button...was that intentional ;-) -- XXXXXXXXXXX |
From: Phil E. <ph...@li...> - 2008-03-26 17:31:49
|
Phil Edwards wrote: > Okay, probably not the nicest bit of code I've ever written, but it > seems to do the trick: > Extra brownie points for the first person to spot the bug in the code... :-) -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0x68393AEE |
From: Phil E. <ph...@li...> - 2008-03-25 23:27:11
|
Okay, probably not the nicest bit of code I've ever written, but it seems to do the trick: -----begin loop-demo.rsrc.py----- {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'bgTemplate', 'title':u'Loop Demo', 'size':(380, 220), 'statusBar':1, 'style':['resizeable'], 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit', 'command':'exit', }, ] }, ] }, 'components': [ {'type':'StaticText', 'name':'StaticText3', 'position':(10, 45), 'text':u'environment:', }, {'type':'StaticText', 'name':'StaticText2', 'position':(10, 30), 'text':u'known as iteration) in an event-driven programming', }, {'type':'Button', 'name':'stopLoopBtn', 'position':(115, 125), 'label':u'Stop Looping', }, {'type':'Button', 'name':'startLoopBtn', 'position':(10, 125), 'label':u'Start Looping', }, {'type':'Gauge', 'name':'Gauge1', 'position':(15, 80), 'size':(345, 28), 'backgroundColor':(220, 230, 232, 255), 'layout':'horizontal', 'max':10, 'value':0, }, {'type':'StaticText', 'name':'StaticText1', 'position':(10, 15), 'text':u'This program demonstrates a way to control loops (also', }, ] # end components } # end background ] # end backgrounds } } ------end loop-demo.rsrc.py------ -----begin loop-demo.py----- #!/usr/bin/python # simple demonstration of looping # standard Python imports import time # PythonCard imports import wx from PythonCard import model class loopDemo(model.Background): def on_initialize(self, event): self.loopRunning = False self.components.stopLoopBtn.enabled = False print self.components.Gauge1.max print self.components.Gauge1.value def on_startLoopBtn_mouseClick(self, event): if not self.loopRunning: self.components.startLoopBtn.enabled = False self.components.stopLoopBtn.enabled = True self.components.Gauge1.value = 0 self.loopRunning = True self.countValue = 0 while self.countValue < self.components.Gauge1.max: self.countValue += 1 self.components.Gauge1.value = self.countValue wx.Yield() time.sleep(1) print self.countValue def on_stopLoopBtn_mouseClick(self, event): if self.loopRunning: self.loopRunning = False self.countValue = self.components.Gauge1.max + 1 self.components.startLoopBtn.enabled = True self.components.stopLoopBtn.enabled = False self.components.Gauge1.value = 0 if __name__ == '__main__': app = model.Application(loopDemo) app.MainLoop() ------end loop-demo.py------ -- Regards Phil Edwards | PGP/GnuPG Key Id Brighton, UK | 0x68393AEE |
From: Alex T. <al...@tw...> - 2008-03-25 22:40:14
|
James Wilkinson wrote: > I'm in Windows XP, and I'm trying to write something like this: > > > while going: > do stuff > > > def on_startButton_mouseClick(...): > going = 1 > > def on_stopButton_mouseClick(...): > going = 0 > > > That should (might) work, provided you include some important code within the loop (i.e. within "do stuff") - see below. > My problem is where to put the loop. The best example I could find in > the samples was the Gravity program. That program puts the loop in > the startButton handler, and Gravity works fine on my machine.]When I > do that in my program, it works fine until I push the stop button. > Then it freezes up and I have to kill it. I also tried putting the > loop in an on_idle(...) method and got the same results. > > If you have enough info to 'do stuff' right away, you could simply put the loop at the end of your on_initialize() but it's likely that you need to let the user set things up before you are ready to 'do stuff', so you might need a button (e.g. 'Go') and put the loop within its handler. The important thing is that you will be in a tight loop (i.e. everything will freeze) unless you allow a way for the user interaction to happen. The easiest way to do that (see for example the Gravity sample) is to include something like # give the user a chance to click Stop wx.SafeYield(self, True) within the loop. > I got around it finally using a timer and it's handler to replace the > loop completely, but that's no good to me for two reasons: > > More complicated than it needs to be :-) > I think the RIGHT way to do this is to use a thread for the loop, but > that's also too much for beginning students. > > Much too complicated - not just for beginners, but because it's too complicated :-) You only need threads if there is "real work" that could be time consuming needing to happen both in the background and the foreground parts. For simply setting a variable to stop a loop, there is no work, and no need for lengthy processing, in the UI event, so threads are very much overkill. Something along the lines I suggested above, and the Gravity example, should work. If you are having trouble, and if it's not too long or complicated (or secret) include the whole of your code in the next email and we can be more specific. (or simplify 'do stuff' to be something simple like 'print going' and then send the whole code ....) -- Alex Tweedly mailto:al...@tw... www.tweedly.net |
From: James W. <ji...@cs...> - 2008-03-25 21:50:07
|
I'm in Windows XP, and I'm trying to write something like this: while going: do stuff def on_startButton_mouseClick(...): going = 1 def on_stopButton_mouseClick(...): going = 0 My problem is where to put the loop. The best example I could find in the samples was the Gravity program. That program puts the loop in the startButton handler, and Gravity works fine on my machine.]When I do that in my program, it works fine until I push the stop button. Then it freezes up and I have to kill it. I also tried putting the loop in an on_idle(...) method and got the same results. I got around it finally using a timer and it's handler to replace the loop completely, but that's no good to me for two reasons: 2. it's too complicated for beginning students 1. the whole point was to expose them to loops I think the RIGHT way to do this is to use a thread for the loop, but that's also too much for beginning students. Any advice gratefully accepted. -- ------------------------------------------------------------- Jimmy Wilkinson | Professor Emeritus of Computer Science ji...@cs... | The College of Charleston (843) 953-8160 | Charleston SC 29424 http://www.cs.cofc.edu/~jimmy If there is one word to describe me, that word would have to be "profectionist". |
From: Alex S. <al...@sc...> - 2008-03-25 16:14:32
|
Hi: This is my first post to the list, =) When I add a BitmapCanvas in the resourceEditor I get lots of errors in the console, and the component doesn't get added. I'm running OSX 10.4.11, PythonCard 0.8.1 and who knows which wx under that. Thanks in advance for any pointers. CGContextConcatCTM: invalid context CGContextSaveGState: invalid context doClip: invalid context CGContextSaveGState: invalid context Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/menu.py", line 204, in _dispatch handler(background, aWxEvent) File "resourceEditor.py", line 1188, in on_componentAdd_command self.create_component(desc, False, "New"+className, "create") File "resourceEditor.py", line 1098, in create_component self.components[name] = desc File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/model.py", line 98, in __setitem__ control = component.ComponentFactory().createComponent(self.parent, self.parent.panel, item) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/component.py", line 347, in createComponent component = clazz(aParent, aResource) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/components/bitmapcanvas.py", line 103, in __init__ self.clear() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/PythonCard/components/bitmapcanvas.py", line 217, in clear dc.BlitPointSize((0, 0), (self._size[0], self._size[1]), self._bufImage, (0, 0)) File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx- 2.8-mac-unicode/wx/_gdi.py", line 3385, in BlitPointSize return _gdi_.DC_BlitPointSize(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "status == noErr" failed at /BUILD/wxPython-src-2.8.4.0/src/mac/carbon/graphics.cpp(1324) in EnsureIsValid(): Cannot nest wxDCs on the same window |
From: Aaron S. <az...@bu...> - 2008-03-25 14:03:33
|
I can report that Python and Leopard work great together. I have done plenty of work on it since January, and I'm pleased. Also wxWindows and PythonCard work well on Leopard. The only area that I've been disappointed in the Mac-Python mix is with respect to database libraries. There's a fine one for MacPython library for MySQL, but to get to any other (Oracle, SQL Server especially) was a royal pain in the tuchus. I ended up writing a Python wrapper around JDBC, and then I have Python spark up a JVM and use the JDBC libraries to talk to the databases. And since some of my code runs on Linux, this worked well for that as well. -Aaron On Mar 25, 2008, at 9:48 AM, Brian Mahoney wrote: > > I think I ignored the initial post because Python was having > problems with the Leopard release, and I expected things would > eventually resolve themselves. You may want to check the internet > for the general state of Python (esp. PythonLauncher) and Leopard. > > Good Luck > > |
From: Brian M. <mrb...@gm...> - 2008-03-25 13:48:00
|
I think I ignored the initial post because Python was having problems with the Leopard release, and I expected things would eventually resolve themselves. You may want to check the internet for the general state of Python (esp. PythonLauncher) and Leopard. Good Luck > > |
From: Aaron S. <az...@bu...> - 2008-03-25 12:40:44
|
I just tried that, but it didn't seem to work for me. PythonLauncher started, ran for about 5 seconds, and then exited. Perhaps a versions problem? What I have that does work is a small shell script, run_RE.sh, like so: #! /bin/sh # # A quick shell script to launch the PythonCard Resource Editor # python ./resourceEditor.py # # And then I tagged all ".sh" files to be opened with Terminal. So now I can click the icon for run_RE.sh and it launches a Terminal window, and then Resource Editor on top of that. A bit cludgy, but it works. Any other ideas out there? Aaron On Mar 25, 2008, at 6:24 AM, XXXXXXXXXXX wrote: > On 25/03/2008 00:50, Aaron Stevens wrote: >> Hello, is there anybody out there? >> I realized I sent this 2 months ago with no replies. Perhaps the >> mailing list is down? > > I don't think so....I suspect a lot of people are having to deal > with more important things and haven't had time to contribute. I've > been using PythonCard/wxPython a fair bit recently for my job, but > sadly never seem to have time to contribute back... > > ...anyway, with regard to your query, I have PythonCard installed on > a Mac here so I'll try to help. Bear in mind that I don't use this > computer for development any more, so this might not be the > preferred way of setting things up. > > 1. G4 Mac mini, running 10.4.11 "Tiger" and Python 2.3; > 2. PythonCard is located in /Library/Python/2.3/site-packages/ > PythonCard, so I can reach it from any user; > 3. "tools" folder is located in PythonCard folder, like you have; > 4. To launch the editors by double-clicking I used Get Info to open > all applications using /System/Library/Frameworks/Python.framework/ > Versions/2.3/Resources/PythonLauncher > > I must have got this from an earlier version of the installation > documentation in <http://pythoncard.sourceforge.net/macosx_tiger_installation.html > > because the latest notes have slightly different locations and use > Python 2.5. > > -- > XXXXXXXXXXX > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-03-25 10:24:41
|
On 25/03/2008 00:50, Aaron Stevens wrote: > Hello, is there anybody out there? > I realized I sent this 2 months ago with no replies. Perhaps the > mailing list is down? I don't think so....I suspect a lot of people are having to deal with more important things and haven't had time to contribute. I've been using PythonCard/wxPython a fair bit recently for my job, but sadly never seem to have time to contribute back... ...anyway, with regard to your query, I have PythonCard installed on a Mac here so I'll try to help. Bear in mind that I don't use this computer for development any more, so this might not be the preferred way of setting things up. 1. G4 Mac mini, running 10.4.11 "Tiger" and Python 2.3; 2. PythonCard is located in /Library/Python/2.3/site-packages/PythonCard, so I can reach it from any user; 3. "tools" folder is located in PythonCard folder, like you have; 4. To launch the editors by double-clicking I used Get Info to open all applications using /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/PythonLauncher I must have got this from an earlier version of the installation documentation in <http://pythoncard.sourceforge.net/macosx_tiger_installation.html> because the latest notes have slightly different locations and use Python 2.5. -- XXXXXXXXXXX |
From: Aaron S. <az...@bu...> - 2008-03-25 00:50:57
|
Hello, is there anybody out there? I realized I sent this 2 months ago with no replies. Perhaps the mailing list is down? -Aaron On Jan 17, 2008, at 2:36 PM, Aaron Stevens wrote: > Hi guys, > > I've been using/teaching PythonCard for a short while, and I've just > moved to a Mac (no more blue screens, I hope). However, I'm still > learning some of the best practices for Mac. Anyone using PythonCard > on a Mac got some ideas/notes to share? > > Specifically, I wasn't sure how you launch it. I put the package in / > Users/azs/code/python/lib/PythonCard-0.8.2, with the tools located > at / > Users/azs/code/python/lib/PythonCard-0.8.2/tools. To run the editor, > I'm just launching it at the command line using "python > layoutEditor.py". Anyone doing differently? > > Your advice appreciated! > > Aaron > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Aaron S. <az...@bu...> - 2008-01-17 19:43:47
|
Hi guys, I've been using/teaching PythonCard for a short while, and I've just moved to a Mac (no more blue screens, I hope). However, I'm still learning some of the best practices for Mac. Anyone using PythonCard on a Mac got some ideas/notes to share? Specifically, I wasn't sure how you launch it. I put the package in / Users/azs/code/python/lib/PythonCard-0.8.2, with the tools located at / Users/azs/code/python/lib/PythonCard-0.8.2/tools. To run the editor, I'm just launching it at the command line using "python layoutEditor.py". Anyone doing differently? Your advice appreciated! Aaron |
From: John H. <ec...@ya...> - 2008-01-07 00:20:20
|
Yes, using PythonCard can be addictive, isn't it? I've tried many many times to jump off it and go-on with others but have always managed to find a way of doing things without leaving some an elegant tool package. I just wish the open source Python community would concentrate more on pushing PythonCard forward more - than to keep creating yet another GUI of the day package. But then we are the one that have several Web Platform packages with new ones keep appearing. BTW: sizer might not be a good reason for the need to go native on wxPython because the level of wxPython knowledge required is very shallow. If you need to encapsulate an unsupported control, or if you need to tie your ap with Matplotlib, or things of that sort, than you would need to go native. In my humble opinion, no matter how you slice it, jumping from PythonCard to native wxPython is painful. --- Christoph Schneeberger <cs...@bo...> wrote: > Hi, > > I've been playing and working with PythonCard quite > a time now and I > still love it. However there is a certain point when > one has to start > dealing with wxPython resp. wx , say if you want a > bit more from a the > ListCtrl, Notebook or from TreeCtrl or even use > sizer. > > Now my problem is that, the jump from writing > PythonCard apps with the > help of the online documentation and the fine > PythonCard tools to > understanding the wxPython docs seems way too broad > for me to take. So I > am wondering what others did to close this gap, is > there a nice > tutorial, an excellent book to read etc. ? I mean wx > resp. wxPython > seems to me the way to go but I am having an > extremly hard time learning > it. I have found a few books on amazon, but only > 'wxPython in Action' > seems dedicated to my topic in question and I dont > wan't a general > cookbook with a chapter on wxPython because I think > that wouldn't help > me much. > > Naturally the way I'd really like it to be is that > PythonCard completely > wraps all those nifty wx-components I'm dreaming of > to use like the > above ones... but I realize there sure are reasons > why this is not done, > be it even lack of time or motivation or technical > issues or that the > component may not be simplified enough to justify > the wrapping, etc. > Also I guess that just shifts the point where you > have to deal with wx > directly a bit into the future. I don't know, > however I tasted blood and > I want the meat now (full blown cross platform gui > apps with all bells > and whistles) ;-) > > Thanks for any reading recommendations and tips, > Christoph > > -- > > > "Quis custodiet ipsos custodes?" > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- John Henry |
From: John H. <ec...@ya...> - 2008-01-07 00:00:48
|
You can pass a None down. As I said before, as long as you are not using more advance form of doing things, you should be ok. Be careful about calling events from on_initialize because the components might not have been created yet. --- Tony Cappellini <cap...@gm...> wrote: > Where do you get the event object from, for an event > that hasn't occurred? > These are automatically passed to the handler by > pythoncard. > But, we cannot cal an event handler without passing > an event object. > > >> def on_button1_mouseClick(self, >>>>> event > <<<<<<<): > >> self.on_button2_mouseClick(event) > > >>If that's all you want to do, then it's simply. > Just > >>make a call to that event handler. > > >>For instance: > > >> def on_button1_mouseClick(self, event): > >> self.on_button2_mouseClick(event) > -- John Henry |
From: Tony C. <cap...@gm...> - 2008-01-06 23:54:58
|
Where do you get the event object from, for an event that hasn't occurred? These are automatically passed to the handler by pythoncard. But, we cannot cal an event handler without passing an event object. >> def on_button1_mouseClick(self, >>>>> event <<<<<<<): >> self.on_button2_mouseClick(event) >>If that's all you want to do, then it's simply. Just >>make a call to that event handler. >>For instance: >> def on_button1_mouseClick(self, event): >> self.on_button2_mouseClick(event) |
From: John H. <ec...@ya...> - 2008-01-06 23:50:44
|
Well, as with any volunteer based software project, the documentation is accurate at the time it was written - so we all wish. Pythoncard documentation and tutorial is already much better than many of the open-source projects I've seen. I learned my PythonCard stuff through lots of tear and sweats - from this mailing list, from reading the code and examples (and to its credit - there are lots of examples), experimenting, and sometimes get lucky by stepping through the code using an interactive debugger. But I only know stuff I used. If I see a question I know the answer to, I always try to help. Pythoncard has helped me tremendously in the last years. It's the least I can do for it. --- Tony Cappellini <cap...@gm...> wrote: > Is this documented anywhere? > None of the tutorials I've read talk about this. In > fact, they > completely leave out a lot of stuff regarding the > resource editor & layout editor capabilities. > > On Jan 6, 2008 3:11 PM, John Henry > <ec...@ya...> wrote: > > I can't remember how to do that right off the top > of > > my head but I believe there is a way to stuff an > event > > into the event queue... > > > > > -- John Henry |
From: John H. <ec...@ya...> - 2008-01-06 23:43:48
|
If that's all you want to do, then it's simply. Just make a call to that event handler. For instance: def on_button1_mouseClick(self, event): self.on_button2_mouseClick(event) The only trap about doing this is that the event structure is really that of button1 - not button2. So, if you are using code inside on_button2_mouseClick such as: event.target.enabled=False instead of say: self.components.button2.enabled=False then you would be in trouble. That's why simulating an event by pushing an event into the event queue is by far the safer way to do it. Sorry but I have to research this a bit to try to refresh my memory on how to do it that way. But for now, I think this should work for you unless you're doing things more advanced. --- Tony Cappellini <cap...@gm...> wrote: > I've got a combo box update event handler that is > called when the user > makes a selection in the combo box. > When the event handler is called, other controls are > updated accordingly. > > However, this only occurs when the screen is > visible, and the user > makes a selection. > > During initialization, I want to select a default > item in the combo > box, and I want the other controls to be updated > accordingly, just as > if the user had made the selection. Sure, I can > manually add code to > do this, but it seems like it's better to jsut use > the built in event > handlers, and simulate a selection in the combo box, > so I dont need to > duplicate the code which updates the other controls. > > Does this explain the issue more clearly? > > thanks > > On Jan 6, 2008 2:38 PM, John Henry > <ec...@ya...> wrote: > > I kind of get what you are trying to do but just > to be > > sure, can you elaborate a bit because I might be > able > > to answer it. I do a lot of creating controls > such as > > buttons on the fly. > > > > --- Tony Cappellini <cap...@gm...> wrote: > > > > > I have a Radio Group with two buttons in it. > > > I can't call the event handler programmatically > > > because event needs to > > > be passed. > > > > > > When I tried setting one of the radio buttons > > > programmatically, the > > > event handler never was called. > > > > > > How can I force the event to be generated by > setting > > > one of the > > > buttons programmatically? > > > > > > thanks > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio > > > 2005. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Pythoncard-users mailing list > > > Pyt...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > > > > > -- > > John Henry > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- John Henry |
From: Tony C. <cap...@gm...> - 2008-01-06 23:19:27
|
Is this documented anywhere? None of the tutorials I've read talk about this. In fact, they completely leave out a lot of stuff regarding the resource editor & layout editor capabilities. On Jan 6, 2008 3:11 PM, John Henry <ec...@ya...> wrote: > I can't remember how to do that right off the top of > my head but I believe there is a way to stuff an event > into the event queue... > > |
From: John H. <ec...@ya...> - 2008-01-06 23:11:30
|
I can't remember how to do that right off the top of my head but I believe there is a way to stuff an event into the event queue... --- Tony Cappellini <cap...@gm...> wrote: > Is there a description or tutorial that shows what > these are for and > how to use them? > > I want to "fake" the user having clicked on a combo > box by manually > triggering the event, but I don't know how. > I'm wondering if I can take advantage of > actionBindings or command to > fake the event being triggered. > > When I click on an item in the combo box, I want > other combo boxes to > be updated. I know how to do this. > > But with the initial setting of the main combo box, > I will initialize > and manually select the string from my code. > When this happens, I would like the select event > handler to be called, > so I want to simulate that event. > > > Does anyone know how this can be done? > > thanks > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- John Henry |
From: Tony C. <cap...@gm...> - 2008-01-06 22:44:39
|
I've got a combo box update event handler that is called when the user makes a selection in the combo box. When the event handler is called, other controls are updated accordingly. However, this only occurs when the screen is visible, and the user makes a selection. During initialization, I want to select a default item in the combo box, and I want the other controls to be updated accordingly, just as if the user had made the selection. Sure, I can manually add code to do this, but it seems like it's better to jsut use the built in event handlers, and simulate a selection in the combo box, so I dont need to duplicate the code which updates the other controls. Does this explain the issue more clearly? thanks On Jan 6, 2008 2:38 PM, John Henry <ec...@ya...> wrote: > I kind of get what you are trying to do but just to be > sure, can you elaborate a bit because I might be able > to answer it. I do a lot of creating controls such as > buttons on the fly. > > --- Tony Cappellini <cap...@gm...> wrote: > > > I have a Radio Group with two buttons in it. > > I can't call the event handler programmatically > > because event needs to > > be passed. > > > > When I tried setting one of the radio buttons > > programmatically, the > > event handler never was called. > > > > How can I force the event to be generated by setting > > one of the > > buttons programmatically? > > > > thanks > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio > > 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Pythoncard-users mailing list > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > -- > John Henry > |
From: John H. <ec...@ya...> - 2008-01-06 22:44:38
|
I kind of get what you are trying to do but just to be sure, can you elaborate a bit because I might be able to answer it. I do a lot of creating controls such as buttons on the fly. --- Tony Cappellini <cap...@gm...> wrote: > I have a Radio Group with two buttons in it. > I can't call the event handler programmatically > because event needs to > be passed. > > When I tried setting one of the radio buttons > programmatically, the > event handler never was called. > > How can I force the event to be generated by setting > one of the > buttons programmatically? > > thanks > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- John Henry |
From: Tony C. <cap...@gm...> - 2008-01-03 23:36:07
|
Is there a description or tutorial that shows what these are for and how to use them? I want to "fake" the user having clicked on a combo box by manually triggering the event, but I don't know how. I'm wondering if I can take advantage of actionBindings or command to fake the event being triggered. When I click on an item in the combo box, I want other combo boxes to be updated. I know how to do this. But with the initial setting of the main combo box, I will initialize and manually select the string from my code. When this happens, I would like the select event handler to be called, so I want to simulate that event. Does anyone know how this can be done? thanks |
From: Tony C. <cap...@gm...> - 2008-01-03 20:43:22
|
I like the look/functionality of a combobox more than the list widget, but I don't like the fact that the text can be edited. Is there a built-in way to make a combo-box non-editable? |
From: Tony C. <cap...@gm...> - 2007-12-25 02:36:56
|
I have a Radio Group with two buttons in it. I can't call the event handler programmatically because event needs to be passed. When I tried setting one of the radio buttons programmatically, the event handler never was called. How can I force the event to be generated by setting one of the buttons programmatically? thanks |