SourceForge logo
SourceForge logo
Menu

pythoncard-users — PythonCard Users and Developers

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
S M T W T F S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(2)
19
(1)
20
21
22
23
24
25
26
27
28
29
30





Showing 3 results of 3

From: Azam, N. <na...@wr...> - 2013年09月19日 00:30:27
Thank you Steven - that worked perfectly! That was exactly the solution for my problem.
Thanks also for the explanation of why I was seeing that behavior.
Regards,
Naweed.
-----Original Message-----
From: Steven D'Aprano [mailto:st...@pe...] 
Sent: Wednesday, September 18, 2013 12:33 AM
To: pyt...@li...
Subject: Re: [Pythoncard-users] List components
On Wed, Sep 18, 2013 at 03:42:46AM +0000, Azam, Naweed wrote:
> Hello,
> 
> I have a question about list components. When I try to specify text 
> to appear in a List box, each character appears on a line alone and 
> nothing shows up in the stringSelection drop down box.
I'm not an expert on Pythoncard, but given the description of the error, I would try passing the list of movie titles directly rather than a single string. E.g. instead of:
# clips is a list of movie titles
self.components.List1.items = str(clips) 
I would use this:
self.components.List1.items = clips 
This assumes that each movie title is a string.
Calling str() on a list of strings gives you a single string:
py> clips = ['Warm Bodies', 'Gone With The Wind', 'Alien']
py> str(clips)
"['Warm Bodies', 'Gone With The Wind', 'Alien']"
and then iterating over that string gives you individual characters, including those from the list itself:
py> for element in str(clips):
... print element
... 
[
'
W
a
r
m
[... snip long output ...]
Does this help?
--
Steven
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just 49ドル.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Pythoncard-users mailing list
Pyt...@li...
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
From: Steven D'A. <st...@pe...> - 2013年09月18日 04:48:57
On Wed, Sep 18, 2013 at 03:42:46AM +0000, Azam, Naweed wrote:
> Hello,
> 
> I have a question about list components. When I try to specify text 
> to appear in a List box, each character appears on a line alone and 
> nothing shows up in the stringSelection drop down box.
I'm not an expert on Pythoncard, but given the description of the error, 
I would try passing the list of movie titles directly rather than a 
single string. E.g. instead of:
# clips is a list of movie titles
self.components.List1.items = str(clips) 
I would use this:
self.components.List1.items = clips 
This assumes that each movie title is a string.
Calling str() on a list of strings gives you a single string:
py> clips = ['Warm Bodies', 'Gone With The Wind', 'Alien']
py> str(clips)
"['Warm Bodies', 'Gone With The Wind', 'Alien']"
and then iterating over that string gives you individual characters, 
including those from the list itself:
py> for element in str(clips):
... print element
... 
[
'
W
a
r
m
[... snip long output ...]
Does this help?
-- 
Steven
From: Azam, N. <na...@wr...> - 2013年09月18日 03:46:24
Hello,
I have a question about list components. When I try to specify text to appear in a List box, each character appears on a line alone and nothing shows up in the stringSelection drop down box.
How do I get the full text of each item (not individual characters) to appear in the List box as well as in the stringSelection drop down box?
This command lists everything in a static text box:
self.components.ClipList.text = str(clips)
This command lists everything with a single character on each line in the List box:
self.components.List1.items = str(clips)
I thought this command would work, but the List box appears empty:
self.components.List1.stringSelection = str(clips)
Note that "clips" is a list of movie titles.
Thanks for any help and guidance.
Regards,
Naweed.

Showing 3 results of 3

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /