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: <gre...@gm...> - 2004-12-01 19:40:53
|
On Mon, 29 Nov 2004 13:29:09 -0800, Kevin Altis <al...@se...> wr= ote: > On Nov 28, 2004, at 2:37 PM, Gregory Pi=F1ero wrote: >=20 >=20 >=20 > > Hi everyone, > > > > I'm trying to use py2exe on a small pythoncard app I made but when I > > try to run the exe it says errors occured and in the log file it says: > > > > Traceback (most recent call last): > > File "JobRater.py", line 60, in ? > > File "PythonCard\model.pyc", line 329, in __init__ > > File "PythonCard\resource.pyc", line 45, in __init__ > > File "PythonCard\util.pyc", line 30, in readAndEvalFile > > IOError: [Errno 2] No such file or directory: 'JobRater.rsrc.py' > > > > Unfortunately I'm not sure what the correct method for using py2exe > > with pythonCard is so I'm not sure if I'm doing something wrong or > > what. This is my setup.py file: > > > > from distutils.core import setup > > import py2exe > > > > setup(windows=3D["JobRater.py"]) > > > > And then I just call it as instructed on the py2exe website: > > > >>> python setup.py py2exe > > > > Any ideas what I could be doing wrong? Below I'll paste JobRater.py > > and JobRater.rsrc.py just in case there's something wrong in those. > > > > Thanks, > > > > Greg > > >=20 > You need to specifically import the component modules that you use in > your resource file, but your initial problem is that you need to > included the .rsrc.py and any other data files you use either by > manually copying them into the directory or just including them in the > py2exe data files list. If you look at the minimalStandalone sample > you'll see setup.py ... >=20 > from distutils.core import setup > import py2exe >=20 > setup( name =3D "minimal", > console =3D ["minimal.py"], > data_files =3D [ (".", ["readme.txt", "minimal.rsrc.py"]) ] > ) >=20 > ka >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Kevin A. <al...@se...> - 2004-11-29 21:29:19
|
On Nov 28, 2004, at 2:37 PM, Gregory Pi=F1ero wrote: > Hi everyone, > > I'm trying to use py2exe on a small pythoncard app I made but when I > try to run the exe it says errors occured and in the log file it says: > > Traceback (most recent call last): > File "JobRater.py", line 60, in ? > File "PythonCard\model.pyc", line 329, in __init__ > File "PythonCard\resource.pyc", line 45, in __init__ > File "PythonCard\util.pyc", line 30, in readAndEvalFile > IOError: [Errno 2] No such file or directory: 'JobRater.rsrc.py' > > Unfortunately I'm not sure what the correct method for using py2exe > with pythonCard is so I'm not sure if I'm doing something wrong or > what. This is my setup.py file: > > from distutils.core import setup > import py2exe > > setup(windows=3D["JobRater.py"]) > > And then I just call it as instructed on the py2exe website: > >>> python setup.py py2exe > > Any ideas what I could be doing wrong? Below I'll paste JobRater.py > and JobRater.rsrc.py just in case there's something wrong in those. > > Thanks, > > Greg > You need to specifically import the component modules that you use in=20 your resource file, but your initial problem is that you need to=20 included the .rsrc.py and any other data files you use either by=20 manually copying them into the directory or just including them in the=20= py2exe data files list. If you look at the minimalStandalone sample=20 you'll see setup.py ... from distutils.core import setup import py2exe setup( name =3D "minimal", console =3D ["minimal.py"], data_files =3D [ (".", ["readme.txt", "minimal.rsrc.py"]) ] ) ka |
From: <gre...@gm...> - 2004-11-29 18:58:58
|
Hey guys, I tried sending this yesterday, I'm not sure why it didn't go thr= ough. ---------- Forwarded message ---------- From: Gregory Pi=F1ero <gre...@gm...> Date: Sun, 28 Nov 2004 17:37:04 -0500 Subject: Using py2exe with pythoncard To: pyt...@li... Hi everyone, I'm trying to use py2exe on a small pythoncard app I made but when I try to run the exe it says errors occured and in the log file it says: Traceback (most recent call last): File "JobRater.py", line 60, in ? File "PythonCard\model.pyc", line 329, in __init__ File "PythonCard\resource.pyc", line 45, in __init__ File "PythonCard\util.pyc", line 30, in readAndEvalFile IOError: [Errno 2] No such file or directory: 'JobRater.rsrc.py' Unfortunately I'm not sure what the correct method for using py2exe with pythonCard is so I'm not sure if I'm doing something wrong or what. This is my setup.py file: from distutils.core import setup import py2exe setup(windows=3D["JobRater.py"]) And then I just call it as instructed on the py2exe website: >>python setup.py py2exe Any ideas what I could be doing wrong? Below I'll paste JobRater.py and JobRater.rsrc.py just in case there's something wrong in those. Thanks, Greg JobRater.py: #!/usr/bin/python """ __version__ =3D "$Revision: 1.5 $" __date__ =3D "$Date: 2004/04/30 16:26:12 $" """ from PythonCard import model import cPickle from main import ProbData class JobRater(model.Background): def on_initialize(self, event): #get data files datafile=3Dr'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\data.p' #if find data files load them self.Jobbayes=3DcPickle.load(file(datafile)) unratedjobs_datafilepath=3Dr'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\data\trainingdata\unratedjobs.csv' outputfilepath=3Dr'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\batchoutput.csv' self.unratedjobsfile=3Dfile(unratedjobs_datafilepath) self.newlyratedjobsoutfile=3Dfile(r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\newlyratedjobs.csv','a') self.alljobslist=3Dself.unratedjobsfile.readlines() self.updatejobdesc() def on_btngood_mouseClick(self,event): self.Jobbayes.train_from_an_example(True,self.job) self.newlyratedjobsoutfile.write('YES'+','+self.job) self.updatejobdesc() event.Skip() def on_btnbad_mouseClick(self,event): self.Jobbayes.train_from_an_example(False,self.job) self.newlyratedjobsoutfile.write('NO'+','+self.job) self.updatejobdesc() event.Skip() def on_btnExplain_mouseClick(self,event): self.components["txtjobdesc"].text=3Dself.Jobbayes.explainrating(se= lf.job) event.Skip() def on_txtjobdesc_mouseClick(self,event): self.updatejobdesc() event.Skip() def updatejobdesc(self): self.job=3Dself.alljobslist.pop() self.components["txtjobdesc"].text=3Dself.job self.components["lblpercentrating"].text=3Dstr(round(self.Jobbayes.= ratenewjob(self.job)*100,2))+'%' def on_mnuExit_select(self, event): self.close() def on_close(self, event): #save trained data cPickle.dump(self.Jobbayes,file(r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\data.p','w')) event.skip() if __name__ =3D=3D '__main__': app =3D model.Application(JobRater) app.MainLoop() JobRater.rsrc.py: {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'jobview', 'title':'Job Rating', 'position':(271, 69), 'size':(600, 800), 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit', 'command':'exit', }, ] }, ] }, 'components': [ {'type':'Button', 'name':'btnExplain', 'position':(337, 14), 'size':(115, 23), 'font':{'style': 'italic', 'faceName': 'Times New Roman', 'family': 'sansSerif', 'size': 8}, 'label':'Explain this rating', }, {'type':'StaticText', 'name':'lblpercentrating', 'position':(227, 9), 'size':(99, 37), 'alignment':'center', 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 20}, }, {'type':'StaticText', 'name':'StaticText2', 'position':(6, 18), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 10}, 'text':'Probability that this is a good job is ', }, {'type':'StaticText', 'name':'StaticText1', 'position':(63, 676), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 18}, 'text':'Training:', }, {'type':'Button', 'name':'btnbad', 'position':(181, 661), 'size':(100, 80), 'backgroundColor':(255, 0, 0), 'font':{'faceName': 'Arial Black', 'family': 'sansSerif', 'size': 8}, 'label':'Rate As Bad', }, {'type':'Button', 'name':'btngood', 'position':(281, 661), 'size':(-1, 80), 'backgroundColor':(0, 255, 0), 'font':{'faceName': 'Arial Black', 'family': 'sansSerif', 'size': 8}, 'label':'Rate As Good', }, {'type':'TextArea', 'name':'txtjobdesc', 'position':(0, 60), 'size':(590, 602), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 12}, }, ] # end components } # end background ] # end backgrounds } } |
From: Liam C. <cy...@gm...> - 2004-11-29 09:40:24
|
To whoever implemented the above, thanks heaps. There I was, racking my newbish brain as to how to accomplish this, a wxPython evangelising acquaintance considered it too difficult to do, so in desperation I rtfm'ed one last time, and there, down the bottom, was THE answer. So, a big thanks to the person who created the above (I'm assuming Kevin Altis), and also to the person who added that note to the docs. I had fun trying to explain to my wife why I was doing a happy dance. Liam Clarke >Updated for PythonCard 0.6.4 and later on 2002-04-12 > >Subject: [Pythoncard-users] addMethod, dynamic method binding -- '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: <gre...@gm...> - 2004-11-28 22:37:07
|
Hi everyone, I'm trying to use py2exe on a small pythoncard app I made but when I try to run the exe it says errors occured and in the log file it says: Traceback (most recent call last): File "JobRater.py", line 60, in ? File "PythonCard\model.pyc", line 329, in __init__ File "PythonCard\resource.pyc", line 45, in __init__ File "PythonCard\util.pyc", line 30, in readAndEvalFile IOError: [Errno 2] No such file or directory: 'JobRater.rsrc.py' Unfortunately I'm not sure what the correct method for using py2exe with pythonCard is so I'm not sure if I'm doing something wrong or what. This is my setup.py file: from distutils.core import setup import py2exe setup(windows=["JobRater.py"]) And then I just call it as instructed on the py2exe website: >>python setup.py py2exe Any ideas what I could be doing wrong? Below I'll paste JobRater.py and JobRater.rsrc.py just in case there's something wrong in those. Thanks, Greg JobRater.py: #!/usr/bin/python """ __version__ = "$Revision: 1.5 $" __date__ = "$Date: 2004/04/30 16:26:12 $" """ from PythonCard import model import cPickle from main import ProbData class JobRater(model.Background): def on_initialize(self, event): #get data files datafile=r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\data.p' #if find data files load them self.Jobbayes=cPickle.load(file(datafile)) unratedjobs_datafilepath=r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\data\trainingdata\unratedjobs.csv' outputfilepath=r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\batchoutput.csv' self.unratedjobsfile=file(unratedjobs_datafilepath) self.newlyratedjobsoutfile=file(r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\newlyratedjobs.csv','a') self.alljobslist=self.unratedjobsfile.readlines() self.updatejobdesc() def on_btngood_mouseClick(self,event): self.Jobbayes.train_from_an_example(True,self.job) self.newlyratedjobsoutfile.write('YES'+','+self.job) self.updatejobdesc() event.Skip() def on_btnbad_mouseClick(self,event): self.Jobbayes.train_from_an_example(False,self.job) self.newlyratedjobsoutfile.write('NO'+','+self.job) self.updatejobdesc() event.Skip() def on_btnExplain_mouseClick(self,event): self.components["txtjobdesc"].text=self.Jobbayes.explainrating(self.job) event.Skip() def on_txtjobdesc_mouseClick(self,event): self.updatejobdesc() event.Skip() def updatejobdesc(self): self.job=self.alljobslist.pop() self.components["txtjobdesc"].text=self.job self.components["lblpercentrating"].text=str(round(self.Jobbayes.ratenewjob(self.job)*100,2))+'%' def on_mnuExit_select(self, event): self.close() def on_close(self, event): #save trained data cPickle.dump(self.Jobbayes,file(r'C:\Documents and Settings\Gregory\My Documents\1JHUClasses\605.445.71 (AI)\Project\src\data.p','w')) event.skip() if __name__ == '__main__': app = model.Application(JobRater) app.MainLoop() JobRater.rsrc.py: {'application':{'type':'Application', 'name':'Template', 'backgrounds': [ {'type':'Background', 'name':'jobview', 'title':'Job Rating', 'position':(271, 69), 'size':(600, 800), 'menubar': {'type':'MenuBar', 'menus': [ {'type':'Menu', 'name':'menuFile', 'label':'&File', 'items': [ {'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit', 'command':'exit', }, ] }, ] }, 'components': [ {'type':'Button', 'name':'btnExplain', 'position':(337, 14), 'size':(115, 23), 'font':{'style': 'italic', 'faceName': 'Times New Roman', 'family': 'sansSerif', 'size': 8}, 'label':'Explain this rating', }, {'type':'StaticText', 'name':'lblpercentrating', 'position':(227, 9), 'size':(99, 37), 'alignment':'center', 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 20}, }, {'type':'StaticText', 'name':'StaticText2', 'position':(6, 18), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 10}, 'text':'Probability that this is a good job is ', }, {'type':'StaticText', 'name':'StaticText1', 'position':(63, 676), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 18}, 'text':'Training:', }, {'type':'Button', 'name':'btnbad', 'position':(181, 661), 'size':(100, 80), 'backgroundColor':(255, 0, 0), 'font':{'faceName': 'Arial Black', 'family': 'sansSerif', 'size': 8}, 'label':'Rate As Bad', }, {'type':'Button', 'name':'btngood', 'position':(281, 661), 'size':(-1, 80), 'backgroundColor':(0, 255, 0), 'font':{'faceName': 'Arial Black', 'family': 'sansSerif', 'size': 8}, 'label':'Rate As Good', }, {'type':'TextArea', 'name':'txtjobdesc', 'position':(0, 60), 'size':(590, 602), 'font':{'faceName': 'Microsoft Sans Serif', 'family': 'sansSerif', 'size': 12}, }, ] # end components } # end background ] # end backgrounds } } |
From: Phil T. <phi...@fr...> - 2004-11-27 22:51:22
|
Hi All, I'm excited to get PythonCard installed, but I'm wondering which Python I should use. I have both the native OS X Python as well as Fink's Python, so when I installed PythonCard, it went into /sw/lib/python2.3, rather than /Library/Python. As a result, when I run minimal.py, for example, I get this: PhilBook:/sw/lib/python2.3/site-packages/PythonCard/samples/minimal user$ ./minimal.py Traceback (most recent call last): File "./minimal.py", line 8, in ? from PythonCard import model File "/sw/lib/python2.3/site-packages/PythonCard/model.py", line 24, in ? from wxPython.wx import wxPySimpleApp, wxFrame, wxMessageDialog, wxICON_EXCLAMATION, wxOK, wxVERSION_STRING ImportError: No module named wxPython.wx What's the best way of getting around this error message? I imagine it has something to do with the two python's, with the wxPython stuff being installed under one python and PythonCard being installed with the other one, right? P +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ { Phil Thomson { home: http://www.sfu.ca/~pthomson { label: http://centibel.org/ { group: http://groups.yahoo.com/group/databenders/ +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ SDF Public Access UNIX System http://www.freeshell.org/ Geekier than you since 1987. |
From: Luanne C. <lua...@gm...> - 2004-11-25 08:57:57
|
Hello, I've used PythonCard to create my GUI. I'd like to know how I can set a maximum length limit for a textfield? Thanks, Luanne -- http://ladyluanne.blogspot.com |
From: <Pau...@mn...> - 2004-11-24 15:05:36
|
I have successfully created a stand-alone grid control using only wxPython and tweaked it to behave exactly (well almost) the way I want to. How would I go about integrating this into my Pythoncard app? Is there a way to do it? Is there any timetable yet for when a wxGrid control will be added to Pythoncard's resource editor? BTW, I love Pythoncard. It's also very nifty that it's a wrapper for wxPython so you can add little enhancements here and there where Pythoncard doesn't have it covered. Good work. Thanks, Paul. |
From: Andy T. <an...@ha...> - 2004-11-21 12:05:46
|
Kevin Altis wrote: > beware, middle posting below... ;-) > > On Oct 15, 2004, at 8:29 AM, John Miller wrote: > >> I'm glad you brought up this thread again because I had been wanting >> to mention DABO: >> >> http://dabodev.com/ >> >> This aims to be an open source Filemaker/FoxPro visual IDE >> replacement. From their site: >> >> """ >> Dabo is a 3-tier, cross-platform application development framework, >> written in Python atop the wxPython GUI toolkit. >> >> Dabo's authors, Ed Leafe and Paul McNett, have strong backgrounds in >> database application development using the awesome and underrated >> Microsoft Visual FoxPro development environment. >> >> While Visual FoxPro shines at developing data-centric applications, it >> has one limitation that cannot be ignored: it only runs on Microsoft >> Windows, and Ed and Paul both have clients that want their >> applications to run on Linux and Macintosh. We are sure we are not >> alone in this regard: it is a multi-platform world with more diverse >> needs than one vendor can fulfill. >> """ >> >> I'm wondering if there could be any useful cross-pollination between >> DABO and PythonCard? >> >> John Miller > > > Almost certainly. I've exchanged some email with Paul and talked to him > at OSCON. However, I told him that until they change their license to > something other than the GPL I won't even look at the code or think > about incorporating it into parts of PythonCard since I have no > intention of having PythonCard succumb to the GPL. > > http://dabodev.com/licensing > > I'll be happy to take a look and collaborate once the license is > changed. Paul is of course welcome to contribute to this discussion and > PythonCard as long as GPL code doesn't get rolled into the project. > > ka > [snip] > According to the web site they changed to the MIT license at the beginning of November. Which is the same license as PythonCard. Regards, Andy -- ----------------------------------------------------------------------- From the desk of Andrew J Todd esq. "So I curtailed my Walpoling activities, sallied forth and infiltrated your place of purveyance to negotiate the vending of some cheesy comestibles." - Monty Python. |
From: Kevin A. <al...@se...> - 2004-11-19 19:00:43
|
On Nov 18, 2004, at 9:07 AM, Smith, Frank wrote: > I know this not directly related to PythonCard but I thought that some=20= > of you that are pretty wx knowledgeable may be able to enlighten me.=20= > Without getting into a lot of details, my PythonCard application uses=20= > the PrintText function of wxHtmlEasyPrinting. Is there a way of=20 > avoiding the Printer Setup dialog from being invoke every time I call=20= > PrintText?=A0 It's a major hassle because the application needs to go = to=20 > the PrintText function often (Don't ask =85 it's a user requirement). > > Any advice would be really appreciated. > > Frank > You'll need to ask on wxPython-users, I have no idea. ka |
From: Kevin A. <al...@se...> - 2004-11-19 19:00:21
|
On Nov 18, 2004, at 6:17 AM, Arsalan Zaidi wrote: > How do I call on_FolderTree_selectionChanged(self, event) from within > another function? > > In other words, in foo() I update a data store and I want the > FolderTree > component to update itself with the new data. > on_FolderTree_selectionChanged(self, event) usually does this job... > > So how do I go about doing this? > > Thanks in advance! > > --Arsalan > You can call any event method just like you call any other method, just pass None as the parameter and then make sure your event handler either doesn't use the event argument or checks whether it is None and uses one of the component methods to get the selection if it is None. ka |
From: Smith, F. <F....@te...> - 2004-11-18 17:07:23
|
I know this not directly related to PythonCard but I thought that some of you that are pretty wx knowledgeable may be able to enlighten me. Without getting into a lot of details, my PythonCard application uses the PrintText function of wxHtmlEasyPrinting. Is there a way of avoiding the Printer Setup dialog from being invoke every time I call PrintText? It's a major hassle because the application needs to go to the PrintText function often (Don't ask ... it's a user requirement). Any advice would be really appreciated. Frank |
From: Ruben M. <rmc...@ya...> - 2004-11-16 13:35:14
|
--- Ruben Marquez <rmc...@ya...> wrote: > Ahh! Even better then. Thanks. I take that back. I should not have said that installing from source was "better" in this case. The rpms offered some nice touches and conveniences. However, I was able to install PythonCard from source very easily. So, the rpms are better, but installing from source is not that bad. -Ruben __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com |
From: Ruben M. <rmc...@ya...> - 2004-11-15 21:07:35
|
Ahh! Even better then. Thanks. -Ruben --- Kevin Altis <al...@se...> wrote: > On Nov 15, 2004, at 8:23 AM, Ruben Marquez wrote: > > > I know that in the past Phil has provided some > very > > nice RPMs for Python Card on Mandrake. I recently > > upgraded to Mandrake 10.1 CE (and I'm loving it, > by > > the way). I was able to install wxPython 2.5.3.1 > > without a problem. Now I am interested in adding > > PythonCard. I'm not in a real rush or anything, > but > > is there a package for this in the works? :] > > > > -Ruben > > PythonCard itself has no C code, it is pure Python, > so just download > the tar.gz and run > > python setup.py install > > making sure that "python" is your Python 2.3 > installation. > > ka > > __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com |
From: Kevin A. <al...@se...> - 2004-11-15 17:45:21
|
On Nov 15, 2004, at 8:23 AM, Ruben Marquez wrote: > I know that in the past Phil has provided some very > nice RPMs for Python Card on Mandrake. I recently > upgraded to Mandrake 10.1 CE (and I'm loving it, by > the way). I was able to install wxPython 2.5.3.1 > without a problem. Now I am interested in adding > PythonCard. I'm not in a real rush or anything, but > is there a package for this in the works? :] > > -Ruben PythonCard itself has no C code, it is pure Python, so just download the tar.gz and run python setup.py install making sure that "python" is your Python 2.3 installation. ka |
From: Ruben M. <rmc...@ya...> - 2004-11-15 16:23:47
|
I know that in the past Phil has provided some very nice RPMs for Python Card on Mandrake. I recently upgraded to Mandrake 10.1 CE (and I'm loving it, by the way). I was able to install wxPython 2.5.3.1 without a problem. Now I am interested in adding PythonCard. I'm not in a real rush or anything, but is there a package for this in the works? :] -Ruben __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |
From: Kevin A. <al...@se...> - 2004-11-13 16:32:34
|
On Nov 11, 2004, at 12:27 PM, Arsalan Zaidi wrote: > > First up, PythonCard is great! Can't wait for version 1.0 :-) > > Now to the problem. I want to call a function in class derived from > model.Background before I call the model.Pythoncrd mainloop. Something > like this... > > app = model.PythonCardApp(Mail.Mail, aFileName='Mail.rsrc.py') > Mail.Mail.foo(self.emailaddr, self.passwd, self.clientVer) > app.MainLoop() > > Is something like this possible? Is there anyway to pass parameters etc > to the obj contructed by model.PythonCardApp from Mail.Mail? In general, you can't do much with wxPython or PythonCard until the MainLoop() has been started, so you would want to do your initialization in the on_initialize event handler instead. However, if you do want to access the main background, you would need to do it like so: app.backgrounds[0].foo(emailaddr, passwd, clientVer) Obviously you would need to initialize emailaddr, passwd, and clientVer before calling foo. Since PythonCard doesn't really take advantage of using multiple backgrounds, the current list structure is overkill, so backgrounds[0] type of references will probably be changed to just background in the next release or two. > And before I sign off, a wishlist for 1.0 > > 1. Wizards (http://www.freenet.org.nz/python/PythonCard/) > 2. Toolbars > > Thanks in advance! > > --Arsalan Wizards and toolbars would be nice. I won't be doing much coding this month though, so it will be a while before I take a look at your wizard code. Andy Todd started an implementation for a simple Toolbar class once, but I'm not sure how far he took it. It should be possible to do an implementation similar to the PythonCard StatusBar class so that there is a default one you can get easily and if you need a complex ToolBar you could roll your own class and do whatever you want in pure wxPython. ka |
From: Arsalan Z. <ars...@fl...> - 2004-11-11 20:27:10
|
First up, PythonCard is great! Can't wait for version 1.0 :-) Now to the problem. I want to call a function in class derived from model.Background before I call the model.Pythoncrd mainloop. Something like this... app = model.PythonCardApp(Mail.Mail, aFileName='Mail.rsrc.py') Mail.Mail.foo(self.emailaddr, self.passwd, self.clientVer) app.MainLoop() Is something like this possible? Is there anyway to pass parameters etc to the obj contructed by model.PythonCardApp from Mail.Mail? And before I sign off, a wishlist for 1.0 1. Wizards (http://www.freenet.org.nz/python/PythonCard/) 2. Toolbars Thanks in advance! --Arsalan |
From: Kevin A. <al...@se...> - 2004-11-10 18:52:37
|
On Nov 10, 2004, at 5:46 AM, Schollnick, Benjamin wrote: > Folks, > > I am attempting to do two things: > > 1) Access a virtual file system containing the contents of a ZIP > file. This has been achieved, via using the VFS / ZipFS from skunkWeb. > > 2) Use a HTML Window component to view the HTML contents.... > This is partially usable... But there is several major issues. > > > The issues are: > > 1) [Minor] HTML Window is not frames enabled... > 2) The following code works okay... > > self.directory, self.zip_filename = self.Choose_Zip_File ( ) > self.directory = self.directory + os.sep > print self.directory > print self.zip_filename > self.zipfile = zipfs.ZipFS ( self.directory + self.zip_filename > ) > open = self.zipfile.open > > if self.zipfile.isfile ("default.htm"): > tempfile = self.zipfile.open (r"default.htm") > text = "".join (tempfile.readlines () ) > > self.components.BookViewer.text = "".join > (tempfile.readlines()) > > But the HTML Window does not properly display the graphics, nor > can it navigate the HTML file. Any links that are clicked are > "broken"... > > So I suspect the WX HTML viewer does not use the Python Open > command... Since I re-assigned OPEN to the zipfile open routines... > > Any suggestions on working around this? I can deal with the > lack of > frames.... But I really need to be able to view the graphics, > and > follow the links... > > > - Benjamin > IEHtmlWindow (Windows-only) would support frames, HtmlWindow doesn't; see the readme.txt or wxPython documentation for more info on which attributes it supports. In order for HtmlWindow or IEHtmlWindow to open images or follow links within the HTML, it must have absolute or relative URLs that it can find via an http: or file: URL. wxPython wraps wxWidgets, so the underlying control doesn't use Python's open command. I suspect the only way you would be able to get this to work would be to unzip the contents into a temporary directory. Pass the absolute path of the file (self.components.BookViewer.text = 'default.htm') for the starting point. If you don't do a chdir to the directory beforehand, use an absolute path. If there is another workaround for the underlying HtmlWindow control, you'll need to ask about that on the wxPython-users mailing list. There might actually be a way of overriding some internal methods to just fetch the contents of the zip file as needed. In fact, since there is a Help Viewer (HtmlHelpController) that already uses zip files it might be that the trick is to override LoadPage. You would need to modify your htmlwindow.py component module or make a custom one for your app and do the appropriate LoadPage override. Again, ask on wxPython-users what you need to do to make it work. ka |
From: Kevin A. <al...@se...> - 2004-11-10 18:35:28
|
On Nov 9, 2004, at 8:30 PM, Chad Crabtree wrote: > I am making a new component that I have figured out from looking at > the > source and stuff and resolving error messages as they come. However > I'm > having a difficulty. I am not able to get the resource to save the > size > but I cannot figure out why because I have the Spec set up right from > > what I understand. > > class ScrolledImageSpec(widget.WidgetSpec): > def __init__( self ) : > events = [] > attributes = { > 'file':{'presence':'optional','default':None}, > 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 > ] } > } > widget.WidgetSpec.__init__( self, 'ScrolledImage', 'Widget' , > > events, attributes ) > > I do not see that I must implement a method to get this to work. But > > perhaps I'm wrong. > The problem is almost certainly the following bit of code. In order to avoid saving explicit attribute values that are actually defaults and might be different on other platforms (e.g. height of a TextField), the resourceOutput code does a lot of special-casing for particular attributes like size. You will probably have to add your component to the list below. Ideally, the component would be able to return the appropriate size, so what we probably need is a special method that would return -1 values when appropriate. So, maybe a getDefaultSize (or getBestSize) method can be added to the base Widget class and components such as yours, BitmapCanvas, etc. would override that so this special-case code can go away. For now, you'll have to just patch your own copy of resourceOutput.py # resourceEditor/modules/resourceOutput.py, line 48 # try and determine default sizes width, height = aWidget.size if aWidget.__class__.__name__ in imgWidgets: width, height = aWidget._size elif aWidget.__class__.__name__ not in ['BitmapCanvas', 'HtmlWindow', 'IEHtmlWindow', 'Gauge', 'StaticBox']: bestWidth, bestHeight = aWidget.GetBestSize() if bestWidth == width: width = -1 if bestHeight == height: height = -1 if width != -1 or height != -1: dStr += " 'size':(%d, %d), \n" % (width, height) ka |
From: Kevin A. <al...@se...> - 2004-11-10 18:18:52
|
On Nov 10, 2004, at 7:50 AM, Jim Arlow wrote: > Hello all, > > I've just finished a PythonCard application for editing use cases. > You can > find out about it here: > > http://www.clearviewtraining.com/CVTPlone/SUMR/ > > Scroll down the page to the bottom where you will see "SUMR use case > editor". > > I really enjoyed using PythonCard and would like to contribute to its > development. > > Best regards, > > Jim Arlow > If you want to supply me with a brief description and screenshot I'll add it to the list at: http://pythoncard.sourceforge.net/moreapplications.html Did you have anything in particular in mind for "contributing to development"? ka |
From: Jim A. <Jim...@bt...> - 2004-11-10 15:50:21
|
Hello all, I've just finished a PythonCard application for editing use cases. You can find out about it here: http://www.clearviewtraining.com/CVTPlone/SUMR/ Scroll down the page to the bottom where you will see "SUMR use case editor". I really enjoyed using PythonCard and would like to contribute to its development. Best regards, Jim Arlow |
From: Schollnick, B. <Ben...@xe...> - 2004-11-10 13:49:30
|
Folks, I am attempting to do two things: 1) Access a virtual file system containing the contents of a ZIP file. This has been achieved, via using the VFS / ZipFS from skunkWeb. 2) Use a HTML Window component to view the HTML contents.... This is partially usable... But there is several major issues. The issues are: 1) [Minor] HTML Window is not frames enabled... 2) The following code works okay... self.directory, self.zip_filename =3D self.Choose_Zip_File ( ) self.directory =3D self.directory + os.sep print self.directory print self.zip_filename self.zipfile =3D zipfs.ZipFS ( self.directory + = self.zip_filename ) open =3D self.zipfile.open if self.zipfile.isfile ("default.htm"): tempfile =3D self.zipfile.open (r"default.htm")=20 text =3D "".join (tempfile.readlines () ) self.components.BookViewer.text =3D "".join = (tempfile.readlines()) But the HTML Window does not properly display the graphics, nor can it navigate the HTML file. Any links that are clicked are "broken"... =20 So I suspect the WX HTML viewer does not use the Python Open command... Since I re-assigned OPEN to the zipfile open routines... Any suggestions on working around this? I can deal with the lack of=20 frames.... But I really need to be able to view the graphics, and follow the links... - Benjamin |
From: Chad C. <fla...@ya...> - 2004-11-10 04:30:31
|
I am making a new component that I have figured out from looking at the source and stuff and resolving error messages as they come. However I'm having a difficulty. I am not able to get the resource to save the size but I cannot figure out why because I have the Spec set up right from what I understand. class ScrolledImageSpec(widget.WidgetSpec): def __init__( self ) : events = [] attributes = { 'file':{'presence':'optional','default':None}, 'size' : { 'presence' : 'optional', 'default' : [ 50, 50 ] } } widget.WidgetSpec.__init__( self, 'ScrolledImage', 'Widget' , events, attributes ) I do not see that I must implement a method to get this to work. But perhaps I'm wrong. __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com |
From: Kevin A. <al...@se...> - 2004-11-08 19:35:29
|
On Nov 8, 2004, at 10:00 AM, Tony Maniaci wrote: > Pythoncard is one of the best products I have used. My question is > there any plans to have develop interfaces that can run on the web > like java maybe using jython? No. The focus, at least for my part, will continue to be on a framework and set of tools and samples for building simple desktop applications. I think the only way that would work is if someone made a plug-in that combined Python, wxPython, and PythonCard and even then I don't know all the details that would be required to make it actually work, let alone be something that users would actually download and install. I think someone (probably Robin) did a wxPython player at one time in the past, but I don't know of any current efforts. The solution would likely end up as something Windows and browser-specific. Neil Hodgson did a test in the early days of PythonCard that utilized the PythonCard resource files with MS IE called Pyker. You can read Neil's description here as well as see the old files in the cvs attic (deleted files) section of the old prototype. http://aspn.activestate.com/ASPN/Mail/Message/766307 http://cvs.sourceforge.net/viewcvs.py/pythoncard/PythonCardPrototype/? hideattic=0#dirlist ka |