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: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2005-01-23 19:27:16
|
On Sun, 23 Jan 2005 11:34:47 +1100, Andy Todd wrote: >XXXXXXXXXXX wrote: >> Just a quick question.... <snip> > >There isn't a content filter on the list. The only restriction we have >is that only registered users can post, anyone not registered will have >their posts held for moderation. If they are on topic they will >generally be accepted and turn up on the list. OK, thanks - I didn't think there was a filter, but I wanted to cross that off as a possible cause. And as someone who's posted to this list a couple of times with the wrong address, that was the first thing I checked :-) My missing messages aren't in the mailing list archives either, so I'll put it down to bad luck and coincidence. Neil |
From: Peter C. N. <spa...@le...> - 2005-01-23 05:54:20
|
I am evaluating pythoncard for use in a book focused on new users who will be learning how to program, and program in python. Under debian linux, pythoncard installs and runs fine, but under windows (w2k pro) the installer is failing. I see that others have run into this problem. Is this isolated or are other windows users running into this as well? -Peter -- The 5 year plan: In five years we'll make up another plan. Or just re-use this one. |
From: Kenneth P. <pro...@sk...> - 2005-01-23 05:50:42
|
On Sun, Jan 23, 2005 at 11:34:47AM +1100, Andy Todd wrote: > Neil Hughes wrote: > >Just a quick question....does the mailing list server employ a content > >filter, or has anyone else had messages not making it to the list recently? > > > >I sent one yesterday and one last Saturday on the "Using py2exe with > >pythoncard" thread but they never made it. > > > >Fingers crossed this one makes it...sorry for the off-topic post. > > > >Neil > > > > There isn't a content filter on the list. The only restriction we have > is that only registered users can post, anyone not registered will have > their posts held for moderation. If they are on topic they will > generally be accepted and turn up on the list. Just for reference, from my experience on other Sourceforge lists, this does seem to happen occasionally. I find that sometimes, messages are delayed from being posted for a few hours. Less frequently, messages get lost completely. In the last few weeks, I've had one message get completely lost, and I've also had a few experiences where I've immediately received CC replies from people, but where the messages didn't show up on the list for quite a while. KEN -- Kenneth J. Pronovici <pro...@ie...> Personal Homepage: http://www.skyjammer.com/~pronovic/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759 |
From: Andy T. <an...@ha...> - 2005-01-23 00:35:07
|
XXXXXXXXXXX wrote: > Just a quick question....does the mailing list server employ a content > filter, or has anyone else had messages not making it to the list recently? > > I sent one yesterday and one last Saturday on the "Using py2exe with > pythoncard" thread but they never made it. > > Fingers crossed this one makes it...sorry for the off-topic post. > > Neil > There isn't a content filter on the list. The only restriction we have is that only registered users can post, anyone not registered will have their posts held for moderation. If they are on topic they will generally be accepted and turn up on the list. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Phil E. <ph...@li...> - 2005-01-21 12:38:48
|
On Fri, 2005-01-21 at 12:19, pyt...@li... wrote: > The reason it is being held: > > Post by non-member to a members-only list > Oops, how embarrassing - 'From' address set incorrectly in my e-mail client. List mods, please ignore, with my sincere apologies for the inconvenience. -- Regards Phil Edwards Brighton, UK |
From: Alex T. <al...@tw...> - 2005-01-21 12:37:34
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005 |
From: Phil E. <ph...@li...> - 2005-01-21 12:17:29
|
On Fri, 2005-01-21 at 07:09, Adolfo Aguirre wrote: > There is no unsuscribe option on the page given: > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > or, via email, send a message with subject or body 'help' to > > pyt...@li... > > Please unsuscribe. It's down at the bottom of the page where it says: "To change your subscription (set options like digest and delivery modes, get a reminder of your password, or unsubscribe from Pythoncard-users), enter your subscription email address:" Type your e-mail address in the box and click the 'Edit Options' button. -- Regards Phil Edwards Brighton, UK |
From: Adolfo A. <ad...@li...> - 2005-01-21 07:12:16
|
There is no unsuscribe option on the page given: >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/pythoncard-users >or, via email, send a message with subject or body 'help' to > pyt...@li... Please unsuscribe. |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2005-01-20 20:16:25
|
Just a quick question....does the mailing list server employ a content filter, or has anyone else had messages not making it to the list recently? I sent one yesterday and one last Saturday on the "Using py2exe with pythoncard" thread but they never made it. Fingers crossed this one makes it...sorry for the off-topic post. Neil |
From: Luanne C. <lua...@gm...> - 2005-01-19 05:06:55
|
It worked !!! Very stupid of me...thanks for all your help. -Luanne On Mon, 17 Jan 2005 14:06:38 -0800 (PST), Ruben Marquez <rmc...@ya...> wrote: > Luanne, the line: > > from PythonCard.components import textfield, > statictext, button > > should be in your acual aplication file, not on the > setup.py. I believe there is a minimal sample that > shows this in the samples directory. > > -Ruben > > --- Luanne Coutinho <lua...@gm...> wrote: > > > I do have the button imported- this is my setup.py > > > > #!/usr/bin/python > > > > """ > > __version__ = "$Revision: 1.10 $" > > __date__ = "$Date: 2004/04/24 22:13:31 $" > > """ > > > > from distutils.core import setup > > from PythonCard.components import > > textfield,statictext,button > > import py2exe > > > > setup(name="AutoPhoto", > > console=["AutoPhoto.py"], > > data_files=[(".",["AutoPhoto.rsrc.py"])] > > ) > > > > > > Thanks, > > Luanne > > > > > > On Wed, 5 Jan 2005 15:10:21 +0000, XXXXXXXXXXX > > XXXXXXXXXXXXXXXXXXXXXXXXXX wrote: > > > On Mon, 3 Jan 2005 11:36:01 +0530, Luanne Coutinho > > wrote: > > > > > > >However, the dist directory does get created and > > I can see the exe. > > > >When I try to run the exe, this is the output I > > get: > > > > > > > >Traceback (most recent call last): > > > > File "AutoPhoto.py", line 181, in ? > > > > File "PythonCard\model.pyc", line 337, in > > __init__ > > > > File "PythonCard\resource.pyc", line 48, in > > getResource > > > > File "PythonCard\resource.pyc", line 86, in > > __init__ > > > > File "PythonCard\resource.pyc", line 91, in > > __init__ > > > > File "PythonCard\resource.pyc", line 91, in > > __init__ > > > > File "PythonCard\resource.pyc", line 96, in > > __init__ > > > > File "PythonCard\resource.pyc", line 139, in > > enforceSpec > > > > File "PythonCard\resource.pyc", line 30, in > > loadComponentModule > > > >ImportError: cannot import module 'button > > > > > > > >What am I doing wrong? > > > > > > It looks like you're missing "button" from the > > list of imported > > > PythonCard components: > > > > > > from PythonCard.Components import button > > > > > > I forgot to include the staticline component a > > couple of days ago when > > > using the McMillan Installer and got a virtually > > identical traceback when > > > running the app. > > > > > > Neil > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the > > post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt > > from ThinkGeek. > > > It's fun and FREE -- well, > > almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > Pythoncard-users mailing list > > > Pyt...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > > > > > -- > > http://ladyluanne.blogspot.com > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the > > post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt > > from ThinkGeek. > > It's fun and FREE -- well, > > almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > Pythoncard-users mailing list > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > __________________________________ > Do you Yahoo!? > Meet the all-new My Yahoo! - Try it today! > http://my.yahoo.com > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- http://ladyluanne.blogspot.com |
From: Adolfo A. <ad...@li...> - 2005-01-18 22:30:11
|
unsuscribe |
From: Ruben M. <rmc...@ya...> - 2005-01-17 22:06:48
|
Luanne, the line: from PythonCard.components import textfield, statictext, button should be in your acual aplication file, not on the setup.py. I believe there is a minimal sample that shows this in the samples directory. -Ruben --- Luanne Coutinho <lua...@gm...> wrote: > I do have the button imported- this is my setup.py > > #!/usr/bin/python > > """ > __version__ = "$Revision: 1.10 $" > __date__ = "$Date: 2004/04/24 22:13:31 $" > """ > > from distutils.core import setup > from PythonCard.components import > textfield,statictext,button > import py2exe > > setup(name="AutoPhoto", > console=["AutoPhoto.py"], > data_files=[(".",["AutoPhoto.rsrc.py"])] > ) > > > Thanks, > Luanne > > > On Wed, 5 Jan 2005 15:10:21 +0000, XXXXXXXXXXX > XXXXXXXXXXXXXXXXXXXXXXXXXX wrote: > > On Mon, 3 Jan 2005 11:36:01 +0530, Luanne Coutinho > wrote: > > > > >However, the dist directory does get created and > I can see the exe. > > >When I try to run the exe, this is the output I > get: > > > > > >Traceback (most recent call last): > > > File "AutoPhoto.py", line 181, in ? > > > File "PythonCard\model.pyc", line 337, in > __init__ > > > File "PythonCard\resource.pyc", line 48, in > getResource > > > File "PythonCard\resource.pyc", line 86, in > __init__ > > > File "PythonCard\resource.pyc", line 91, in > __init__ > > > File "PythonCard\resource.pyc", line 91, in > __init__ > > > File "PythonCard\resource.pyc", line 96, in > __init__ > > > File "PythonCard\resource.pyc", line 139, in > enforceSpec > > > File "PythonCard\resource.pyc", line 30, in > loadComponentModule > > >ImportError: cannot import module 'button > > > > > >What am I doing wrong? > > > > It looks like you're missing "button" from the > list of imported > > PythonCard components: > > > > from PythonCard.Components import button > > > > I forgot to include the staticline component a > couple of days ago when > > using the McMillan Installer and got a virtually > identical traceback when > > running the app. > > > > Neil > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the > post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt > from ThinkGeek. > > It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > Pythoncard-users mailing list > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > -- > http://ladyluanne.blogspot.com > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the > post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt > from ThinkGeek. > It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com |
From: edward <ed...@kr...> - 2005-01-17 10:49:07
|
From: "Brian Debuire" <deb...@ho...> >To: pyt...@li... >Date: Fri, 14 Jan 2005 18:13:20 +0000 >Subject: [Pythoncard-users] Compiling app with child windows > >Hi everyone, > >I recieve this error when launching my compiled app with child windows: > >warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) >warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) >Traceback (most recent call last): > File "<string>", line 48, in on_initialize > File "PythonCard\model.pyc", line 176, in childWindow > File "PythonCard\resource.pyc", line 45, in __init__ > File "PythonCard\util.pyc", line 30, in readAndEvalFile >IOError: [Errno 2] No such file or directory: 'C:\\Documents and >Settings\\UNIANDES\\Mis documentos\\My Projects\\PAULA\\dist\\Main\\<Paula >from archive>.rsrc.py' > >Kevin Altis gave me a fix about how to compile child windows with the old >pythoncard prototipe, but this should be fixed with the new versions, or >maybe I am totally wrong about this error, if so any help would be very >appreciated. > >Thanks, > >Brian > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > Brian, I think you might wanna try looking at the setup file that you're using with py2exe. It should look something like this: from distutils.core import setup import py2exe setup( version = "1.0", description = "your program name", name = "name", windows = ["your_program_here.py"], data_files = [ ('', ['<Paula from archive>.rsrc.py', ], ), ] ) distutils does not include PythonCard resource files by default into final dist directory (PythonCard does not "import" the resource file.. it opens it, so distutils would not be able to detect that). In this case, the missing file is your PythonCard resource file, which should be included as shown in the script. Then again, you could simply copy your resource file '<Paula from archive>.rsrc.py' into the dist directory after compiling. I reckon that would work.. it worked for me =) If you still can't get it working, try reading this link - http://www.python.org/doc/current/dist/node12.html Edward |
From: Andy T. <an...@ha...> - 2005-01-17 08:21:54
|
mo...@my... wrote: > Naturaly. > After install wx4u for Python,it is impossible to run no one PythonCard sample or code,simply nothing! > But with ansi version everything is perfect. > It is very important to me to vork with unicode,please explain me what and how to do. > I work on Matsonic MS8318E motherboard with Duron 1.2 CPU,512 MB RAM with XP SP2 and McAfee VirusScan. > Thanks, > Maks Once more; Can you explain what you are doing (with code extracts if possible) and detail any error messages that are output or unexpected behaviour you observe. The configuration of your machine is probably not important. Please show me what you are typing at the command line and then what happens after that. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Liam C. <cy...@gm...> - 2005-01-16 21:46:44
|
Couple of things - can you post the code that loads your child window? I'm assuming that your child window is Settings\\UNIANDES\\Mis documentos\\My Projects\\PAULA\\dist\\Main\\<Paula> from archive>.py so is <Paula> from archive>.rsrc.py present? Is that the error? I'm just a little unsure as to what your exact error is. Regards, Liam Clarke PS Loading children windows is normally quite straight forward..., so please do post your code On Fri, 14 Jan 2005 18:13:20 +0000, Brian Debuire <deb...@ho...> wrote: > Hi everyone, > > I recieve this error when launching my compiled app with child windows: > > warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) > warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) > Traceback (most recent call last): > File "<string>", line 48, in on_initialize > File "PythonCard\model.pyc", line 176, in childWindow > File "PythonCard\resource.pyc", line 45, in __init__ > File "PythonCard\util.pyc", line 30, in readAndEvalFile > IOError: [Errno 2] No such file or directory: 'C:\\Documents and > Settings\\UNIANDES\\Mis documentos\\My Projects\\PAULA\\dist\\Main\\<Paula > from archive>.rsrc.py' > > Kevin Altis gave me a fix about how to compile child windows with the old > pythoncard prototipe, but this should be fixed with the new versions, or > maybe I am totally wrong about this error, if so any help would be very > appreciated. > > Thanks, > > Brian > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |
From: Andy T. <an...@ha...> - 2005-01-15 05:44:00
|
mo...@my... wrote: > Hi, > > There is a problem on my Python 2.23 with 4u-unicode wx to run PythonCard. > > PythonCard don't support Unicode? > PythonCard should work with the unicode build of wxPython. What, exactly, is the problem? Can you explain what you are doing (with code extracts if possible) and detail any error messages that are output or unexpected behaviour you observe. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: <mo...@my...> - 2005-01-14 23:33:39
|
Hi, There is a problem on my Python 2.23 with 4u-unicode wx to run = PythonCard. PythonCard don't support Unicode? |
From: Brian D. <deb...@ho...> - 2005-01-14 18:14:58
|
Hi everyone, I recieve this error when launching my compiled app with child windows: warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) warning: use func(*args, **kwargs) instead of apply(func, args, kwargs) Traceback (most recent call last): File "<string>", line 48, in on_initialize File "PythonCard\model.pyc", line 176, in childWindow File "PythonCard\resource.pyc", line 45, in __init__ File "PythonCard\util.pyc", line 30, in readAndEvalFile IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\UNIANDES\\Mis documentos\\My Projects\\PAULA\\dist\\Main\\<Paula from archive>.rsrc.py' Kevin Altis gave me a fix about how to compile child windows with the old pythoncard prototipe, but this should be fixed with the new versions, or maybe I am totally wrong about this error, if so any help would be very appreciated. Thanks, Brian _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Luanne C. <lua...@gm...> - 2005-01-14 04:12:33
|
Is there anything else I can do to get this working? Thanks Luanne On Mon, 10 Jan 2005 08:13:12 +0000, XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXX wrote: > > > On Thu, 6 Jan 2005 10:12:09 +0530, Luanne Coutinho wrote: > > >I do have the button imported- this is my setup.py > <snip> > >from distutils.core import setup > >from PythonCard.components import textfield,statictext,button > >import py2exe > > In which case, my brief attempt at helping has come to a grinding halt :-( > > I was going to try out py2exe this weekend on one of my PythonCard > projects to see if I could replicate your problem here, but for some > reason the py2exe installer falls over on my XP machine (double-clicking > the self-installing exe brings up an illegal instruction in the 16-bit > DOS subsystem!). > > Neil > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- http://ladyluanne.blogspot.com |
From: Tim Z. <ti...@cc...> - 2005-01-13 00:29:49
|
Hi All, I have just started using PythonCard. I've run into a problem creating a context menu for a text field. The context menu works for other widgets, but when trying it on a text field the standard text context menu overrides my custom one! Is there any way to stop the standard context menu overriding my events? This is the code i have so far ------------------------------ from PythonCard import model import wx, wxPython class MyBackground(model.Background): def on_initialize(self, event): # if you have any initialization # including sizer setup, do it here self.initContextMenu() self.tar = event.target self.allowedContextClick = ['txtTest'] #wx.EVT_RIGHT_UP(self, self.OnRightUp) def initContextMenu(self): self.popup = wx.Menu() mID = wx.NewId() self.popup.Append(mID, 'Test menu item 1', '') wx.EVT_MENU(self, mID, self.on_testMenu_command) def on_testMenu_command(self, event): widget = self.findFocus() print widget.name #def on_txtTest_mouseDown(self, event): # self.PopupMenu(self.popup, event.position) def isAllowedContextClick(self, obj): if obj in self.allowedContextClick: return 1 else: return 0 def on_mouseContextUp(self, event): if self.isAllowedContextClick(event.target.name): x, y = event.target.position pos = x, y+25 self.PopupMenu(self.popup, pos) #event.Skip() if __name__ == '__main__': app = model.Application(MyBackground) app.MainLoop() ---------------------- Thanks Tim Zegir |
From: Alex T. <al...@tw...> - 2005-01-12 12:36:33
|
mo...@my... wrote: >Hi, >Is it possible to put rsrc.py with main.py app. in the one file? >Think I saw it somewhere .. >Thanks > > > Pythoncard/samples/noresource (not exactly "putting rsrc.py with main.py" - but very similar) -- Alex. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/2005 |
From: <mo...@my...> - 2005-01-12 11:44:34
|
Hi, Is it possible to put rsrc.py with main.py app. in the one file? Think I saw it somewhere .. Thanks |
From: Daryl F. <fly...@sb...> - 2005-01-12 06:52:31
|
>I would like to know if there is a way to disable closing my app when >clicking on the X closing button on the top-right. This is actually fairly simple. Basically, you just need to on_close method. From here, you can conditionally allow it to exit, print a message or whatever. Here is a (very) simple example: [From noexit.py] #!/usr/bin/python """ __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2004/04/14 02:38:47 $" """ from PythonCard import model, dialog class MyBackground(model.Background): def on_initialize(self, event): pass def on_close(self, event): if self.components.ChkAllowExit.checked: event.skip() else: pass #dialog.alertDialog(self, "Check the box to allow closing", "No Exit") if __name__ == '__main__': app = model.Application(MyBackground) app.MainLoop() [From noexit.rsrc.py] {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'NoExit', 'title':'Exit Example', 'size':(250, 150), 'components': [ {'type':'CheckBox', 'name':'ChkAllowExit', 'position':(80, 25), 'label':'Allow Exit', }, ] # end components } # end background ] # end backgrounds } } If ChkAllowExit is not checked (default), nothing will happen. You could also change the pass to an alert or something similar. If the user checks the box, on_close will pass the close event on and the application will close normally. -Daryl (Sorry for posting a whole programme and resource file. I tried to keep it as short as possible.) |
From: Simon H. <sim...@ma...> - 2005-01-11 16:12:43
|
I like the flat file database example, but want to extend it a bit. What I want is something visualy like the addresses sample, with a list of records on the left, and the etails of a record in a form on the right. The FlatFileDatabase object makes all fields in the form 'columns' in the database, so if I put a list box on the form then each record in the database has a list box in it with different contents in each list box - not what I want. I recon I can get round this by putting a list box on the left hand side of the form, and a tabbed notebook on the right. I load the FlatFileDatabase app into a page in the notebook and voila! It's contents are isolated to the notebook page. Some problems: I had to change the orriginal FlatFileDatabase module so that it loads as a PageBackground rather than as a Page. A few other small changes required, but it basicaly works and I can start the app and all looks good! The next problem, where I need help. How do I refer to fields in the FlatFileDatabase from the main app? I can't get at my data! Simon hibbs |
From: Brian D. <deb...@ho...> - 2005-01-10 16:22:21
|
Hi everyone, I would like to know if there is a way to disable closing my app when clicking on the X closing button on the top-right. 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/ |