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: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2007-03-28 14:16:41
|
On 27/03/2007 21:26, Kwasir wrote: > > I'm playing around with py.card for a couple of days now. One of the > problems/questions I have is: > is it possible to change the tabbing/cycling order for the widgets on my > window? E.g. when I place 3 textfields on my window, they seem to have > the "tab-order" like they where created - 1,2,3. But when I want nr. 3 > in the upper corner, how can I set it as nr. 1 in the tab-order, when I > jump from widget to widget by using the "TAB"-key? I used to edit the order in the rsrc.py file manually (yuk!), but then somebody pointed out a while ago that the resource editor has a move forwards/backwards menu option that I think changes the tabbing order. Select the component you want to start with and move that to the front, then arrange the others so that they are "below" it in the tabbing order. Somebody please jump in and correct me if I've got this a bit muddled up - I don't have PythonCard on this machine so I can't check this for a few days, and I've never had to re-arrange tabbing order since learning about this mechanism. -- Neil |
From: Kwasir <kw...@gm...> - 2007-03-27 20:18:31
|
Hello everybody! I'm playing around with py.card for a couple of days now. One of the problems/questions I have is: is it possible to change the tabbing/cycling order for the widgets on my window? E.g. when I place 3 textfields on my window, they seem to have the "tab-order" like they where created - 1,2,3. But when I want nr. 3 in the upper corner, how can I set it as nr. 1 in the tab-order, when I jump from widget to widget by using the "TAB"-key? Thanks. best Regards, kwasir P.S.: sorry if my english is terrible, I'm from Austria. |
From: Jussi S. <jus...@pp...> - 2007-03-26 20:18:44
|
hwg kirjoitti: > Thanks for the help. This worked for the TR_MULTIPLE attribute. > Curiously, when I tried to set TR_HIDE_ROOT, Python crashed! > > hg > > *//* I don't even know how the wx.TR_HIDE_ROOT is supposed to make the tree to behave. It 'works' for me and doesn't crash. Are you using new enough versions of Python, wxPython and PythonCard? My environment is: PythonCard version: 0.8.2 wxPython version: 2.6.1.0 Python version: 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] Platform: win32 The only thing I can make wx.TR_HIDE_ROOT to do is hide the whole tree and I can never get it back to visible again. I do this on initialize: tree.SetWindowStyleFlag(wx.TR_MULTIPLE) # <== added by JS self.initialFlags = tree.GetWindowStyleFlag() tree.SetWindowStyleFlag(self.initialFlags | wx.TR_HIDE_ROOT) # <== added by JS print self.initialFlags and it hides the tree alright but then I have a button with code that is supposed to do the opposite i.e. make the tree visible again but doesn't: tree = self.components.tree print tree.GetWindowStyleFlag() if tree.GetWindowStyleFlag() & wx.TR_HIDE_ROOT: tree.SetWindowStyleFlag(self.initialFlags) else: tree.SetWindowStyleFlag(self.initialFlags | wx.TR_HIDE_ROOT) print tree.GetWindowStyleFlag() tree.redraw() I tried tree.Refresh() also with no avail. But on the bright side is that it doesn't crash ;) Sorry I can't be of more help Cheers, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: hwg <hw...@ya...> - 2007-03-26 16:36:11
|
Thanks for the help. This worked for the TR_MULTIPLE attribute. Curiously, when I tried to set TR_HIDE_ROOT, Python crashed! hg Jussi Salmela <jus...@pp...> wrote: hwg kirjoitti: > I have a treeCtrl and I would like to have the ability to select > multiple items in the tree. > > I know the underlying wxTreeCtrl has some flags: > > e.g. style = wx.TR_MULTIPLE | wx.TR_HIDE_ROOT > > But I don't know how (or if) I can access these attributes from my > pythoncard code. > > Any help would be appreciated. > > hg > > ------------------------------------------------------------------------ > Don't pick lemons. > See all the new 2007 cars > > at Yahoo! Autos. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > Here's a part of the PythonCard minimalTree.py file that I have been using to get acquainted with the tree control. I've not really used the tree control for anything but played a little with it last september when someone asked something about this control. So the code may differ from the minimalTree example in othe places also, but the modifications I made to solve your problem are shown with comments: import wx # <== added by JS from PythonCard import model # events # itemActivated, itemExpanding, itemExpanded, # selectionChanging, selectionChanged class Minimal(model.Background): def on_initialize(self, event): tree = self.components.tree self.root = tree.addRoot("1") #print tree.getItemText(self.root) tree.setItemHasChildren(self.root, 1) tree.selectItem(self.root) print dir(tree) # <== added by JS tree.SetWindowStyleFlag(wx.TR_MULTIPLE) # <== added by JS Here's an explanation of what I did (in this order): 1. Added the print and copied its output to an editor 2. Searched among the bunch of interesting sounding methods for names containing 'style' in them 3. Read a litlle bit of the wxTreeCtrl documentation in the wxWidgets docs finding the term 'Window styles' there. 4. Decided that the appropriate method to use must be SetWindowStyleFlag 5. Browsed through the source of tree.py in C:\Python24\Lib\site-packages\PythonCard\components to find any additional info. While doing this found the way to refer to the TR_MULTIPLE constant 6. Made the changes and tested. Seems to work. HTH, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ --------------------------------- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. |
From: Kevin A. <al...@se...> - 2007-03-26 15:46:40
|
On Mar 23, 2007, at 7:15 AM, Jaggo wrote: > Hello ! > > I'm trying to implement a GUI to a Python application I'm writing > using Python Card. > > [If anyone is interested, the application: > http://www.sourceforge.net/Gutenberg2pod/ > ] > > I've ran across a number of issues I failed to answer myself, the > biggest of which was: > > Regarding the component "list", I failed in attempting to create a > button which removed items from a list. I simply couldn't "guess" > the function which returned the index of items selected in a list. > Had this been Py-win I would have simply ran dir() on it, except > that I figure out what exactly was I dir-ing. > > Thank you for your responce, > Omer T. > All the component source files are in the PythonCard/components directory, so you could look at list.py in the case of the 'list' component. In addition, if you run your application with the shell, either via the -s or -d command-line option, you can inspect your components for attributes simply by using command completion in the shell. In your case, at the prompt you could type... >>> self.components.list1. and when you type the period (dot) you will see a list of attributes and methods. What you probably want is 'selection' and possibly 'stringSelection'. You can also look at all of the PythonCard samples and tools to see how things are done. In general, you will see a lot of methods that are in mixedCase style that are aliases for CamelCase wxPython methods (e.g. delete() is the same as Delete()), and for the most common get/set type of methods PythonCard provides an attribute like 'selection' that does the work of two methods such as GetSelection and SetSelection. Finally, in the PythonCard/samples/widgets/widgets.py sample there is a menu option under the File menu called 'Create Component Docs...' that will allow you to create a directory of HTML files with some simplistic documentation of your currently installed components. ka |
From: Jaggo <jag...@ya...> - 2007-03-24 16:41:20
|
God bless yew, this precisely what I needed. [well duh, the dir(self.components.list1) simply did not occur to me.] Jussi Salmela <jus...@pp...> wrote: Jaggo kirjoitti: > Hello ! > > I'm trying to implement a GUI to a Python application I'm writing > using Python Card. > > [If anyone is interested, the application: > http://www.sourceforge.net/Gutenberg2pod/ > ] > > I've ran across a number of issues I failed to answer myself, the > biggest of which was: > > Regarding the component "list", I failed in attempting to create a > button which removed items from a list. I simply couldn't "guess" the > function which returned the index of items selected in a list. Had > this been Py-win I would have simply ran dir() on it, except that I > figure out what exactly was I dir-ing. > With a button having a command doItMan, the confusion can be removed like this: def on_doItMan_command(self, event): lst = self.components.List1 # First execution: print dir(lst) # My-my, what a load of interesting method names! # Second execution after finding a couple of # promising names: print dir(lst.GetSelection) print lst.GetSelection.__doc__ print dir(lst.Delete) print lst.Delete.__doc__ # Sure enough, these are what we need. Let's play a # little i.e. click the button without selecting anything # in the list: x = lst.GetSelection() print x, type(x) # Aha! The __doc__ is in error: it claims that when # no item is selected wx.NOT_FOUND is returned but # insted it returns -1. No big deal though! # Let's try the operation we are after: x = lst.GetSelection() if x != -1: lst.Delete(x) # IT WORKS!!! HTH, Jussi > Thank you for your responce, > Omer T. > > ------------------------------------------------------------------------ > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! > Games. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- Jussi Salmela http://personal.inet.fi/cool/operator/ --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut. |
From: Jussi S. <jus...@pp...> - 2007-03-23 18:55:09
|
hwg kirjoitti: > I have a couple questions about IEHtmlWindow. > > I'm working on a tool to help me manage my Yahoo Photo accounts. I > would like to use a browser window to perform the login. But then I > need to pass control over to my code, which uses urllib2, cookielib, > and BeautifulSoup to get and parse the album and photo pages. > > I need the cookie generated from the login in order to get subsequent > pages. So, a few questions: > > 1. Where does IEHtmlWindow store its cookies? Can I copy the cookie > over so that my cookielib code can use it? (If I log in using my own > code, not a browser window, then the cookie is stored in the > cookiefile I initialize in the code.) > > 2. How can I access the contents (HTML source) of an IEHtmlWindow? If > I can't get the cookies to work, an alternative is to pass everything > through the browser window, which will use the cookie it got during login. > > 3. Is there a way to make a "password entry" text field, where the > typed characters are masked (appear as stars)? > > By the way, the reason I want to use a browser window instead of just > passing the username and password from some text fields in my > Pythoncard app is that occasionally, the user gets one of those login > challenges, where they give you an image, and you have to type in the > "secret code". If they are logging in through the browser window, > they can see this and respond accordingly. > > Any help with this would be much appreciated. > > hg > > ------------------------------------------------------------------------ > No need to miss a message. Get email on-the-go > <http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail> > with Yahoo! Mail for Mobile. Get started. > <http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > The PythonCard Samples Launcher has an application called simpleIEBrowser that I think should clarify a lot of your concerns. NOTE: Please don't confuse this with the simpleBrowser sample! After you have played a little with the simpleIEBrowser and modified the source to fully understand what is happening you may be able to adapt it to fill your needs. I have used the IEHtmlWindow widget and can perhaps help you if you have any more questions. HTH, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: Jussi S. <jus...@pp...> - 2007-03-23 17:35:59
|
Jaggo kirjoitti: > Hello ! > > I'm trying to implement a GUI to a Python application I'm writing > using Python Card. > > [If anyone is interested, the application: > http://www.sourceforge.net/Gutenberg2pod/ > ] > > I've ran across a number of issues I failed to answer myself, the > biggest of which was: > > Regarding the component "list", I failed in attempting to create a > button which removed items from a list. I simply couldn't "guess" the > function which returned the index of items selected in a list. Had > this been Py-win I would have simply ran dir() on it, except that I > figure out what exactly was I dir-ing. > With a button having a command doItMan, the confusion can be removed like this: def on_doItMan_command(self, event): lst = self.components.List1 # First execution: print dir(lst) # My-my, what a load of interesting method names! # Second execution after finding a couple of # promising names: print dir(lst.GetSelection) print lst.GetSelection.__doc__ print dir(lst.Delete) print lst.Delete.__doc__ # Sure enough, these are what we need. Let's play a # little i.e. click the button without selecting anything # in the list: x = lst.GetSelection() print x, type(x) # Aha! The __doc__ is in error: it claims that when # no item is selected wx.NOT_FOUND is returned but # insted it returns -1. No big deal though! # Let's try the operation we are after: x = lst.GetSelection() if x != -1: lst.Delete(x) # IT WORKS!!! HTH, Jussi > Thank you for your responce, > Omer T. > > ------------------------------------------------------------------------ > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! > Games. <http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: Jaggo <jag...@ya...> - 2007-03-23 14:15:48
|
Hello ! I'm trying to implement a GUI to a Python application I'm writing using Python Card. [If anyone is interested, the application: http://www.sourceforge.net/Gutenberg2pod/ ] I've ran across a number of issues I failed to answer myself, the biggest of which was: Regarding the component "list", I failed in attempting to create a button which removed items from a list. I simply couldn't "guess" the function which returned the index of items selected in a list. Had this been Py-win I would have simply ran dir() on it, except that I figure out what exactly was I dir-ing. Thank you for your responce, Omer T. --------------------------------- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. |
From: Jussi S. <jus...@pp...> - 2007-03-23 10:11:17
|
hwg kirjoitti: > I have a treeCtrl and I would like to have the ability to select > multiple items in the tree. > > I know the underlying wxTreeCtrl has some flags: > > e.g. style = wx.TR_MULTIPLE | wx.TR_HIDE_ROOT > > But I don't know how (or if) I can access these attributes from my > pythoncard code. > > Any help would be appreciated. > > hg > > ------------------------------------------------------------------------ > Don't pick lemons. > See all the new 2007 cars > <http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--> > at Yahoo! Autos. > <http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw--> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > Here's a part of the PythonCard minimalTree.py file that I have been using to get acquainted with the tree control. I've not really used the tree control for anything but played a little with it last september when someone asked something about this control. So the code may differ from the minimalTree example in othe places also, but the modifications I made to solve your problem are shown with comments: import wx # <== added by JS from PythonCard import model # events # itemActivated, itemExpanding, itemExpanded, # selectionChanging, selectionChanged class Minimal(model.Background): def on_initialize(self, event): tree = self.components.tree self.root = tree.addRoot("1") #print tree.getItemText(self.root) tree.setItemHasChildren(self.root, 1) tree.selectItem(self.root) print dir(tree) # <== added by JS tree.SetWindowStyleFlag(wx.TR_MULTIPLE) # <== added by JS Here's an explanation of what I did (in this order): 1. Added the print and copied its output to an editor 2. Searched among the bunch of interesting sounding methods for names containing 'style' in them 3. Read a litlle bit of the wxTreeCtrl documentation in the wxWidgets docs finding the term 'Window styles' there. 4. Decided that the appropriate method to use must be SetWindowStyleFlag 5. Browsed through the source of tree.py in C:\Python24\Lib\site-packages\PythonCard\components to find any additional info. While doing this found the way to refer to the TR_MULTIPLE constant 6. Made the changes and tested. Seems to work. HTH, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |
From: Ruben M. <rmc...@ya...> - 2007-03-22 02:21:59
|
Phil, Congratulations! I have been away from programming for a while, but I think I may start getting bak to it soon. I am now using PCLinuxOS (and loving it), and since it is closely related to Mandriva, I think I am going to give your RPM a try. And, I think I am going to recommend PythonCard for inlusion in their repositories. Cheers! --- Phil Edwards <ph...@li...> wrote: > I've just recently put myself through the pain of a > full backup of my laptop > followed by a complete re-format and fresh install > of Mandriva (formerly > Mandrake) Linux 2007. > > When I came to re-install wxPython and PythonCard, I > used my own PythonCard > RPM. However, looking at the available software on > the Mandriva CDs just now, > I was surprised to see the following: > > python-card-0.8.1-3mdv2007.0 > Name : python-card > Version : 0.8.1 > Release : 3mdv2007.0 > Group : Development/Python > Description : > PythonCard is a GUI construction kit for building > cross-platform desktop > applications on Windows, Mac OS X, and Linux, using > the Python language. > > So, first of all, it looks like Mandriva now > includes PythonCard as part of > the main distribution, which is good news. I decided > to take a look at how > they'd built the RPM to see how it compared with > mine, and I spotted the > follwing comment in the official Mandriva spec file: > > "* Tue Jun 7 2005 Frederic Lepied > <fl...@ma...> 0.8.1-1mdk > - initial build (based on Phil Edwards' work)" > > It's nice to know that at least some of the work > that I've done is benefiting > others, and hopefully this will help bring > PythonCard to a wider audience. > > -- > > Regards > > Phil Edwards > Brighton, UK > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html |
From: hwg <hw...@ya...> - 2007-03-16 13:11:53
|
I have a treeCtrl and I would like to have the ability to select multiple items in the tree. I know the underlying wxTreeCtrl has some flags: e.g. style = wx.TR_MULTIPLE | wx.TR_HIDE_ROOT But I don't know how (or if) I can access these attributes from my pythoncard code. Any help would be appreciated. hg --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. |
From: hwg <hw...@ya...> - 2007-03-15 13:03:49
|
I have a couple questions about IEHtmlWindow. I'm working on a tool to help me manage my Yahoo Photo accounts. I would like to use a browser window to perform the login. But then I need to pass control over to my code, which uses urllib2, cookielib, and BeautifulSoup to get and parse the album and photo pages. I need the cookie generated from the login in order to get subsequent pages. So, a few questions: 1. Where does IEHtmlWindow store its cookies? Can I copy the cookie over so that my cookielib code can use it? (If I log in using my own code, not a browser window, then the cookie is stored in the cookiefile I initialize in the code.) 2. How can I access the contents (HTML source) of an IEHtmlWindow? If I can't get the cookies to work, an alternative is to pass everything through the browser window, which will use the cookie it got during login. 3. Is there a way to make a "password entry" text field, where the typed characters are masked (appear as stars)? By the way, the reason I want to use a browser window instead of just passing the username and password from some text fields in my Pythoncard app is that occasionally, the user gets one of those login challenges, where they give you an image, and you have to type in the "secret code". If they are logging in through the browser window, they can see this and respond accordingly. Any help with this would be much appreciated. hg --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. |
From: Hazlett, L. <les...@na...> - 2007-03-12 14:58:42
|
For anyone interested, I found what was happening as I attempted to put multi-line text into a StaticText component. =20 When I typed a newline character (\n) into the text property in the resourceEditor Property Editor window the actual text entered into the text by PythonCard contained an extra (\) before the newline (\n). When I edited the text in the resource file to remove the extra (\), the text displayed as multi-line as desired. Problem solved. Now I know how to create multi-line text in a StaticText component. Les Hazlett The information contained in this communication may be CONFIDENTIAL and i= s intended only for the use of the recipient(s) named above. If you are n= ot the intended recipient, you are hereby notified that any dissemination= , distribution, or copying of this communication, or any of its contents,= is strictly prohibited. If you have received this communication in error= , please notify the sender and delete/destroy the original message and an= y copy of it from your computer or paper files. |
From: Les & J. H. <les...@em...> - 2007-03-11 22:48:21
|
Please ignore my prior question. After turning off my computer to go someplace and restarting my computer, it works just like expected. I can't explain. I can't fix what isn't broken. Sorry for any bother. Les |
From: Les & J. H. <les...@em...> - 2007-03-11 18:24:59
|
<html> <body> Hi,<br><br> This seems so easy I am embarrassed to ask, but somewhere I missed something. <br><br> I can't generate multi-line text in a StaticBox component. When I enter a '\n' newline characer in the text, it displays the text including the '\n'.<br><br> When the string is: <dl> <dd>'This is line one. \n This is line two.' </dl>It displays as: <dl> <dd>This is line one. \n This is line two. </dl>rather than as: <dl> <dd>This is line one. <dd>This is line two. </dl>The wxWidgets documentation says that adding the newline character will yield multi-line text.<br><br> What am I doing wrong?<br><br> <br> HERE IS THE SCRIPT<br><br> from PythonCard import model<br><br> class MyMain(model.Background):<br> pass <br><br> if __name__ == '__main__':<br> app = model.Application(MyMain)<br> app.MainLoop()<br><br> <br><br> HERE IS THE RESOURCE FILE<br><br> {'application':{'type':'Application',<br> 'name':'myMain',<br> 'backgrounds': [<br> {'type':'Background',<br> 'name':'doWork',<br> 'title':'My Work',<br> 'size':(294, 102),<br><br> 'components': [<br><br> {'type':'StaticText', <br> 'name':'StaticText1', <br> 'position':(10, 10), <br> 'text':'This is line one. \\n This is line two.', <br> },<br><br> ] # end components<br> } # end background<br> ] # end backgrounds<br> } }<br> </body> </html> |
From: Alec B. <wry...@gm...> - 2007-03-07 20:16:46
|
It seems that including the bitmapcanvas component in a program compiled with PyInstaller causes PyInstaller to crash. I posted to the PyInstaller list but no one had any ideas, so I thought I'd ask this list. Here's a simple script that shows the error. It works fine uncompiled, but when compiled (even using the latest Trunk version of PyInstaller) it crashes. If I comment out the bitmapcanvas line, all works fine both compiled and uncompiled. I uploaded the compiled version of this to http://wrybread.com/dropbox/test.zip. And the script I'm using to compile is: Anyway, here's the script: ######################################################### # this line will cause the compiled app to crash: from PythonCard.components import statictext, bitmapcanvas # this line works fine: #from PythonCard.components import statictext import time while True: print time.time() time.sleep(.5) |
From: Andy T. <an...@ha...> - 2007-03-07 07:23:36
|
Les & Jane Hazlett wrote: > I am reading about the PythonCard Shell in walkthrough Shell usage and > key bindings > <file:///C:/Python25/Lib/site-packages/PythonCard/docs/html/shell.html> > by Dan Shafer. > > I am using Python 2.5, wxPython 2.8, and PythonCard 0.8.2. > > I find Python IDLE, wxPython PyShell, but no PythonCard Shell. > > I am confused. > > Les Hazlett > Les, PyShell == PythonCard Shell Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Les & J. H. <les...@em...> - 2007-03-04 18:40:19
|
<html> <body> I am reading about the PythonCard Shell in walkthrough <a href="file:///C:/Python25/Lib/site-packages/PythonCard/docs/html/shell.html"> Shell usage and key bindings</a> by Dan Shafer. <br><br> I am using Python 2.5, wxPython 2.8, and PythonCard 0.8.2.<br><br> I find Python IDLE, wxPython PyShell, but no PythonCard Shell. <br><br> I am confused.<br><br> Les Hazlett</body> </html> |
From: <kc1...@ya...> - 2007-03-01 23:39:58
|
Has anybody used matplotlib with PythonCard? There is support for matplotl= ib and wxpython (see:=0A=0Ahttp://www.scipy.org/Cookbook/Matplotlib/Embeddi= ngInWx=0A=0Aand there were some discussion about the subject couple of year= s ago but didn't seem to draw any interest in the subject.=0A=0AIs it possi= ble to use Pythoncard with matplotlib?=0A =0A--=0AJohn Henry=0A=0A |
From: Cullen N. <cul...@gm...> - 2007-02-26 19:34:57
|
Alec, I do that sort of thing (well not exactly) often in Matlab, where the image is represented by a matrix, and then simply doing some appropriate math on it, in a loop. I have never tried it in Python, though I think that PIL (Python Imaging Library) and SciPy might have what you'd need to do it relatively quickly. Also have a look at the Enthought Python package. Unless of course, you find that someone else has done it already. Cullen On 2/25/07, Alec Bennett <wry...@gm...> wrote: > I'm guessing no, but thought I'd ask: is it possible to control the alpha > state of a picture from Python Card? So, for example, I could do a fade > transition? |
From: Alec B. <wry...@gm...> - 2007-02-25 21:12:09
|
I'm guessing no, but thought I'd ask: is it possible to control the alpha state of a picture from Python Card? So, for example, I could do a fade transition? |
From: Alec B. <wry...@gm...> - 2007-02-17 06:49:51
|
I'm wondering if there's a way to make a child window "always on top"? I found this post: http://aspn.activestate.com/ASPN/Mail/Message/2265118 The gist: "There isn't a solution to this in the current release or what is checked into cvs. PythonCard doesn't have an optional attributes field for specifying alternative style flags. Your options are to subclass model.Background for your child window and change __init__ to use the style flags you want. Since you'll basically be copying and pasting theBackground __init__ method, that isn't too bad." I've never done this and can't seem to get it to work, does anyone have any hints? |
From: Alec B. <wry...@gm...> - 2007-02-16 08:10:06
|
I can't figure out how to change the label of a menuitem from within my application. I can add a checkmark like this: self.menuBar.setChecked('moveViewer', 1) I can enable it like this: self.menuBar.setEnabled('moveViewer', 1) But no variation on this will change it's label: self.MenuBar.moveViewer.label = "yo" Does anyone have any hints on this? |
From: Alec B. <wry...@gm...> - 2007-02-16 04:51:34
|
I'm trying to avoid saving a jpeg to a temp file before loading it into a Pythoncard gui component. Something like: import Image filename = "whatever.jpg" im = Image.open(filename) im2 = im.resize( [512, 384] ) self.viewerWindow.components.pic1.file = im2 The above errors out of course, because the component is expecting a filename. I'm wondering if anyone knows how to do this without having to save im2 to a temp file? I gather StringIO can do this, but I can't figure out how. Thanks for any help. |