SourceForge logo
SourceForge logo
Menu

pythoncard-users

From: ronny de w. <ron...@gm...> - 2005年12月16日 23:13:21
Hi,
I am on Windows XP home, installed python 2.4.2, wxPython 2.6.1.0
Installation of pythoncard 0.8.1 fails very close near the end.
My pythoncard app works. But pythoncard is not added to the start program
list.
Also the layout does not fit (overlapping buttons, window too small, etc
...),
guess this is due to the new wxPython version, the application was
originally build with
wxPython2.5.2
Anybody experienced similar problems or have some tips ?
Best regards,
Ronny De Winter
http://quotesviewer.sourceforge.net
From: Alex T. <al...@tw...> - 2005年12月16日 23:38:50
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15/12/2005
From: Ronny De W. <ron...@gm...> - 2005年12月16日 23:51:17
Alex Tweedly wrote:
> ronny de winter wrote:
>
>> Hi,
>>
>> I am on Windows XP home, installed python 2.4.2, wxPython 2.6.1.0 
>> <http://2.6.1.0>
>> Installation of pythoncard 0.8.1 fails very close near the end.
>> My pythoncard app works. But pythoncard is not added to the start 
>> program list.
>>
> Did you use
> PythonCard-0.8.1.win32.exe 
> <http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.1.win32.exe?download>
> or
> PythonCard-0.8.1.FIXED.win32.exe 
> <http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.1.FIXED.win32.exe?download> 
> ?
>
Ok thanks, that was the problem. PythonCard-0.8.1.FIXED.win32.exe works 
fine!
> ronny de winter wrote:
>
>> Also the layout does not fit (overlapping buttons, window too small, 
>> etc ...),
>> guess this is due to the new wxPython version, the application was 
>> originally build with
>> wxPython2.5.2
>>
>> Anybody experienced similar problems or have some tips ?
>
>
> Which layout does not fit ?
> Is it one of the tools (or samples) ? Or one of your own ?
> If it's your own - is it something you can send to let me look at it; 
> I've recently moved to wxPython 2.6.1 and I don't see any problems 
> with layouts changing.
>
It is my own application. You can download it at 
http://quotesviewer.sourceforge.net
Or might it be WinNT vs WinXP ?, allthough i seem to remember that it 
waas ok before on WinNT and WinXP.
>-- 
>Alex Tweedly http://www.tweedly.net
> 
>
>------------------------------------------------------------------------
>
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15/12/2005
> 
>
From: Alex T. <al...@tw...> - 2005年12月17日 00:59:34
Ronny De Winter wrote:
> Alex Tweedly wrote:
>
>> ronny de winter wrote:
>>
>>> Also the layout does not fit (overlapping buttons, window too small, 
>>> etc ...),
>>> guess this is due to the new wxPython version, the application was 
>>> originally build with
>>> wxPython2.5.2
>>>
>>> Anybody experienced similar problems or have some tips ?
>>
>>
>>
>> Which layout does not fit ?
>> Is it one of the tools (or samples) ? Or one of your own ?
>> If it's your own - is it something you can send to let me look at it; 
>> I've recently moved to wxPython 2.6.1 and I don't see any problems 
>> with layouts changing.
>>
> It is my own application. You can download it at 
> http://quotesviewer.sourceforge.net
> Or might it be WinNT vs WinXP ?, allthough i seem to remember that it 
> waas ok before on WinNT and WinXP.
Nice app!
Looks fine to me here (WinXP home, PythonCard cvs latest, wxPython 
2.6.1, Python 2.3.4) - it matches the screenshot on SourceForge (except 
for having the additional buttons).
I'll try it with Python 2.4 this weekend if I can find a machine with 
2.4 on it already (don't want to up date my two main ones in case of any 
problems).
-- 
Alex Tweedly http://www.tweedly.net
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/204 - Release Date: 15/12/2005
From: Ronny De W. <ron...@gm...> - 2005年12月17日 09:52:17
Alex Tweedly wrote:
> Ronny De Winter wrote:
>
>> Alex Tweedly wrote:
>>
>>> ronny de winter wrote:
>>>
>>>> Also the layout does not fit (overlapping buttons, window too 
>>>> small, etc ...),
>>>> guess this is due to the new wxPython version, the application was 
>>>> originally build with
>>>> wxPython2.5.2
>>>>
>>>> Anybody experienced similar problems or have some tips ?
>>>
>>>
>>>
>>>
>>> Which layout does not fit ?
>>> Is it one of the tools (or samples) ? Or one of your own ?
>>> If it's your own - is it something you can send to let me look at 
>>> it; I've recently moved to wxPython 2.6.1 and I don't see any 
>>> problems with layouts changing.
>>>
>> It is my own application. You can download it at 
>> http://quotesviewer.sourceforge.net
>> Or might it be WinNT vs WinXP ?, allthough i seem to remember that it 
>> waas ok before on WinNT and WinXP.
>
>
> Nice app!
> Looks fine to me here (WinXP home, PythonCard cvs latest, wxPython 
> 2.6.1, Python 2.3.4) - it matches the screenshot on SourceForge 
> (except for having the additional buttons).
>
> I'll try it with Python 2.4 this weekend if I can find a machine with 
> 2.4 on it already (don't want to up date my two main ones in case of 
> any problems).
>
You can find a Screencopy on 
http://www.5consulting.com/img/tmp/QuotesViewer-2005年12月17日.jpg
Some differences:
- font of the table text is larger compared to buttons
- horizontal scrollbar because table width does not fit anymore
- watchlist buttons overlap with market selection
- "Market" string now in blue
- Update button falls out of the window
Switching to Windows classic view gives similar problems.
Ronny De Winter
http://quotesviewer.sourceforge.net
From: Alex T. <al...@tw...> - 2005年12月18日 01:38:03
Ronny De Winter wrote:
> Alex Tweedly wrote:
>
>> Nice app!
>> Looks fine to me here (WinXP home, PythonCard cvs latest, wxPython 
>> 2.6.1, Python 2.3.4) - it matches the screenshot on SourceForge 
>> (except for having the additional buttons).
>>
>> I'll try it with Python 2.4 this weekend if I can find a machine with 
>> 2.4 on it already (don't want to up date my two main ones in case of 
>> any problems).
>>
I was right to not want to risk the upgrade - I went ahead and did it, 
and managed to break my WindIDE in the process :-(
> You can find a Screencopy on 
> http://www.5consulting.com/img/tmp/QuotesViewer-2005年12月17日.jpg
> Some differences:
> - font of the table text is larger compared to buttons
> - horizontal scrollbar because table width does not fit anymore
> - watchlist buttons overlap with market selection
> - "Market" string now in blue
> - Update button falls out of the window
>
> Switching to Windows classic view gives similar problems.
I upgraded to Python 2.4.1 and it still looks fine in both Win Classic 
and WinXP themes (except for the "Market" string being blue).
The screen shot looks just like something has made your default font 
larger.
How do the Pythoncard samples look ? Do other PythonCard programs have 
the same problem ?
How about the wxPython demos ? (though most of them use sizers, so that 
may not tell us so much).
-- 
Alex Tweedly http://www.tweedly.net
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16/12/2005
From: Ronny De W. <ron...@gm...> - 2005年12月18日 13:14:49
Alex Tweedly wrote:
> Ronny De Winter wrote:
>
>> Alex Tweedly wrote:
>>
>>> Nice app!
>>> Looks fine to me here (WinXP home, PythonCard cvs latest, wxPython 
>>> 2.6.1, Python 2.3.4) - it matches the screenshot on SourceForge 
>>> (except for having the additional buttons).
>>>
>>> I'll try it with Python 2.4 this weekend if I can find a machine 
>>> with 2.4 on it already (don't want to up date my two main ones in 
>>> case of any problems).
>>>
> I was right to not want to risk the upgrade - I went ahead and did it, 
> and managed to break my WindIDE in the process :-(
>
>> You can find a Screencopy on 
>> http://www.5consulting.com/img/tmp/QuotesViewer-2005年12月17日.jpg
>> Some differences:
>> - font of the table text is larger compared to buttons
>> - horizontal scrollbar because table width does not fit anymore
>> - watchlist buttons overlap with market selection
>> - "Market" string now in blue
>> - Update button falls out of the window
>>
>> Switching to Windows classic view gives similar problems.
>
>
> I upgraded to Python 2.4.1 and it still looks fine in both Win Classic 
> and WinXP themes (except for the "Market" string being blue).
>
> The screen shot looks just like something has made your default font 
> larger.
> How do the Pythoncard samples look ? Do other PythonCard programs 
> have the same problem ?
>
> How about the wxPython demos ? (though most of them use sizers, so 
> that may not tell us so much).
>
Alex, you might be right that it is the default font. I have similar 
problems with some of the PythonCard samples, ie. in the mp3player the 
buttons almost completely dissappear at the bottom of the window. 
Another example is minimalList which ads an horizontal scrollbar.
Where are these default fonts set ? Somewhere in wxPython or wxWindows ?
Ronny
From: Alex T. <al...@tw...> - 2005年12月19日 00:19:31
Ronny De Winter wrote:
> Alex, you might be right that it is the default font. 
Or I might not :-(
I noticed that your euronext browser specifies the font size for the 
multiColumnList.
> I have similar problems with some of the PythonCard samples, ie. in 
> the mp3player the buttons almost completely dissappear at the bottom 
> of the window. Another example is minimalList which ads an horizontal 
> scrollbar.
>
> Where are these default fonts set ? Somewhere in wxPython or wxWindows ?
>
Probably in wxWidgets - but because at least one instance that causes a 
problem has a font size specification, I'm not sure default fonts are 
the answer. Sorry - not sure what it can be (and since it always looks 
ok for me here, I'm not sure what to look at next).
Some thoughts you could look at ...
How does it look in the resorceEditor ?
How do the wxDemo apps look (note you'll probably need to compare to 
screenshots, because those apps that use sizers will probably 
auto-adjust to look OK; only exception is where there is text/button 
aligned with a fixed size graphic - like your "Update"button).
-- 
Alex Tweedly http://www.tweedly.net
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16/12/2005
From: Ronny De W. <ron...@gm...> - 2005年12月19日 09:23:29
This seems to be a PythonCard problem on my Windows configuration,
some more examples:
http://www.5consulting.com/img/tmp/screen1.jpg
resourceEditor Property Editor:
- incomplete button at the right bottom
PythonCard Samples:
custdb: http://www.5consulting.com/img/tmp/screen2.jpg
- overlapping fields
dbBrowser: http://www.5consulting.com/img/tmp/screen3.jpg
- database text field only half visible
minimalList: http://www.5consulting.com/img/tmp/screen4.jpg
- horizontal scrollbar shouldn't be there ?
moderator: http://www.5consulting.com/img/tmp/screen5.jpg
- fonts look too big, ie. "Time Left:" does not fit
mp3player: http://www.5consulting.com/img/tmp/screen6.jpg
- buttons disappear at bottom of the window
I also looked at the wxPython samples and they look ok.
I recall here my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, 
pythoncard 0.8.1
After some searching on the internet i found the following on 
http://www.wxwindows.org/prepare.htm
concerning preparing for wxWidgets 2:
"
Be aware that under Windows, *font sizes will change* to match standard 
Windows font sizes (for example, a 12-point font will appear bigger than 
before). Write your application to be flexible where fonts are 
concerned. Don't rely on fonts being similarly-sized across platforms, 
as they were (by chance) between Windows and X under wxWidgets 1.66. 
Yes, this is not easy... but I think it's better to conform to the 
standards of each platform, and currently the size difference makes it 
difficult to conform to Windows UI standards. You may eventually wish to 
build in a global 'fudge-factor' to compensate for size differences. The 
old font sizing will still be available via wx_setup.h, so do not panic...
"
Does that give any clue ?
Ronny
Alex Tweedly wrote:
> Ronny De Winter wrote:
>
>> Alex, you might be right that it is the default font. 
>
>
> Or I might not :-(
> I noticed that your euronext browser specifies the font size for the 
> multiColumnList.
>
>> I have similar problems with some of the PythonCard samples, ie. in 
>> the mp3player the buttons almost completely dissappear at the bottom 
>> of the window. Another example is minimalList which ads an horizontal 
>> scrollbar.
>>
>> Where are these default fonts set ? Somewhere in wxPython or 
>> wxWindows ?
>>
> Probably in wxWidgets - but because at least one instance that causes 
> a problem has a font size specification, I'm not sure default fonts 
> are the answer. Sorry - not sure what it can be (and since it always 
> looks ok for me here, I'm not sure what to look at next).
>
> Some thoughts you could look at ...
> How does it look in the resorceEditor ?
> How do the wxDemo apps look (note you'll probably need to compare to 
> screenshots, because those apps that use sizers will probably 
> auto-adjust to look OK; only exception is where there is text/button 
> aligned with a fixed size graphic - like your "Update"button).
>
>
From: Ronny De W. <ron...@gm...> - 2006年01月26日 10:15:05
This problem was reported on this mailing list 17-19 dec 2005. Since no 
solution was found i've put the info in a bug record.
http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015
Layout/font problems with resource editor/samples
-------------------------------------------------
I have problems with some of the PythonCard samples, ie. in the 
mp3player the buttons almost completely dissappear at the bottom of the 
window. Another example is minimalList which ads an horizontal scrollbar.
This seems to be a PythonCard problem on my Windows configuration,
my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1
some examples:
http://www.5consulting.com/img/tmp/screen1.jpg
resourceEditor Property Editor:
- incomplete button at the right bottom
PythonCard Samples:
custdb: http://www.5consulting.com/img/tmp/screen2.jpg
- overlapping fields
dbBrowser: http://www.5consulting.com/img/tmp/screen3.jpg
- database text field only half visible
minimalList: http://www.5consulting.com/img/tmp/screen4.jpg
- horizontal scrollbar shouldn't be there ?
moderator: http://www.5consulting.com/img/tmp/screen5.jpg
- fonts look too big, ie. "Time Left:" does not fit
mp3player: http://www.5consulting.com/img/tmp/screen6.jpg
- buttons disappear at bottom of the window
I also looked at the wxPython samples and they look ok.
After some searching on the internet i found the following on 
http://www.wxwindows.org/prepare.htm
concerning preparing for wxWidgets 2:
"
Be aware that under Windows, *font sizes will change* to match standard 
Windows font sizes (for example, a 12-point font will appear bigger than 
before). Write your application to be flexible where fonts are 
concerned. Don't rely on fonts being similarly-sized across platforms, 
as they were (by chance) between Windows and X under wxWidgets 1.66. 
Yes, this is not easy... but I think it's better to conform to the 
standards of each platform, and currently the size difference makes it 
difficult to conform to Windows UI standards. You may eventually wish to 
build in a global 'fudge-factor' to compensate for size differences. The 
old font sizing will still be available via wx_setup.h, so do not panic...
"
Does that give any clue ?
Ronny De Winter
http://quotesviewer.sourceforge.net
From: Alex T. <al...@tw...> - 2006年01月26日 11:24:58
Ronny De Winter wrote:
> This problem was reported on this mailing list 17-19 dec 2005. Since 
> no solution was found i've put the info in a bug record.
> http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015 
>
>
Thanks for recording it (and sorry I didn't get anywhere with it in 
December - busy time of year and it got buried back then).
> Layout/font problems with resource editor/samples
> -------------------------------------------------
>
> I have problems with some of the PythonCard samples, ie. in the 
> mp3player the buttons almost completely dissappear at the bottom of 
> the window. Another example is minimalList which ads an horizontal 
> scrollbar.
>
> This seems to be a PythonCard problem on my Windows configuration,
> my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1
>
> some examples:
>
> http://www.5consulting.com/img/tmp/screen1.jpg
> resourceEditor Property Editor:
> - incomplete button at the right bottom
>
I think we'll need a bit more info from you, on system settings.
When I look at this same window, on a very similar set-up (WinXP, python 
2.4.1, wxPython 2.6.1, pythoncard cvs latest), what I get is
the *overall* window size is the same
the window title bar is smaller
the status bar is smaller
 (therefore the "usable" part of the window is larger vertically)
the font used in the list fields (and presumably in the button also) are 
smaller
I'm guessing the difference is due to different XP "themes" (is that 
what they're called?) and/or different default system fonts. Both areas 
that I know nothing about - but if you happen to know anything about 
them, could you send the relevant info please ?
If you can send that info, I hope to be able to reproduce it here - and 
so confirm that it is a system setting / font issue. That won't mean 
that we'll be able to fix it any time soon, I'm afraid.
The resourceEditor (and indeed most of the samples) do not use sizers, 
and therefore are not able to adapt themselves for differing font 
issues. They also do not specify a font to use, allowing it to default 
to the system font.
Both of these impose limitations between systems - these have largely 
been worked around by adding a certain amount of "slack" in the sizing 
of windows and in the positioning of components, enough for MacOS and 
common Linux variants to work OK.
The long-term fix, I believe, will have to involve the use of sizers. We 
have struggled to find a way to use sizers compatible with the 
simplicity of PythonCard (and will probably continue to struggle for a 
while longer).
If I were you, what I'd do is:
1. make any small work-arounds to make the Pythoncard tools usable on 
your system
2. consider developing any apps as sizer-based, to ensure they do look 
OK on your system as well as others
For 1, I'd edit (with a text editor) 
{pythoncard}/tools/resourceEditor/modules/proprertyEditor.rsrc.py, and 
change
> 'title':'resourceEditor Property Editor',
> 'size':(405, 270),
to make the size bigger (maybe 450,290)
Note that cvs latest of Pythoncard does contain a simple Sizer layout, 
which can help, though only with fairly simple layouts - e.g. most 
though not all of the samples, and all of the PythonCard tools except 
findfiles (which already uses sizers).
BUT the one thing it does not do is resize the entire window, so it 
wouldn't solve the problem with the resourceEditor. However, you may 
find it useful for your own apps.
-- 
Alex Tweedly http://www.tweedly.net
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/240 - Release Date: 25/01/2006
From: Ronny De W. <ron...@gm...> - 2006年01月26日 12:33:55
There is indeed a difference with the themes. The examples below are 
with the default Windows XP theme.
When i switch to Classic theme the situation is a little bit better but 
still not good, ie. the mp3player from the
samples shows buttons at the bottom, but only the top half.
I can work around with the 2 tips you gave me, thanks.
However thinking on other people who would like to give Pythoncard a 
try, when they get similar results as the
ones below they will probably stop using Pythoncard, which is a shame. 
PythonCard has potential for becoming
a very powerful and productive tool.
Ronny
Alex Tweedly wrote:
> Ronny De Winter wrote:
>
>> This problem was reported on this mailing list 17-19 dec 2005. Since 
>> no solution was found i've put the info in a bug record.
>> http://sourceforge.net/tracker/index.php?func=detail&aid=1415287&group_id=19015&atid=119015 
>>
>>
> Thanks for recording it (and sorry I didn't get anywhere with it in 
> December - busy time of year and it got buried back then).
>
>> Layout/font problems with resource editor/samples
>> -------------------------------------------------
>>
>> I have problems with some of the PythonCard samples, ie. in the 
>> mp3player the buttons almost completely dissappear at the bottom of 
>> the window. Another example is minimalList which ads an horizontal 
>> scrollbar.
>>
>> This seems to be a PythonCard problem on my Windows configuration,
>> my setup: WinXP, python 2.4.2, wxPython 2.6.1.0, pythoncard 0.8.1
>>
>> some examples:
>>
>> http://www.5consulting.com/img/tmp/screen1.jpg
>> resourceEditor Property Editor:
>> - incomplete button at the right bottom
>>
> I think we'll need a bit more info from you, on system settings.
>
> When I look at this same window, on a very similar set-up (WinXP, 
> python 2.4.1, wxPython 2.6.1, pythoncard cvs latest), what I get is
>
> the *overall* window size is the same
> the window title bar is smaller
> the status bar is smaller
> (therefore the "usable" part of the window is larger vertically)
> the font used in the list fields (and presumably in the button also) 
> are smaller
>
> I'm guessing the difference is due to different XP "themes" (is that 
> what they're called?) and/or different default system fonts. Both 
> areas that I know nothing about - but if you happen to know anything 
> about them, could you send the relevant info please ?
>
> If you can send that info, I hope to be able to reproduce it here - 
> and so confirm that it is a system setting / font issue. That won't 
> mean that we'll be able to fix it any time soon, I'm afraid.
>
> The resourceEditor (and indeed most of the samples) do not use sizers, 
> and therefore are not able to adapt themselves for differing font 
> issues. They also do not specify a font to use, allowing it to default 
> to the system font.
>
> Both of these impose limitations between systems - these have largely 
> been worked around by adding a certain amount of "slack" in the sizing 
> of windows and in the positioning of components, enough for MacOS and 
> common Linux variants to work OK.
>
> The long-term fix, I believe, will have to involve the use of sizers. 
> We have struggled to find a way to use sizers compatible with the 
> simplicity of PythonCard (and will probably continue to struggle for a 
> while longer).
>
> If I were you, what I'd do is:
>
> 1. make any small work-arounds to make the Pythoncard tools usable on 
> your system
> 2. consider developing any apps as sizer-based, to ensure they do 
> look OK on your system as well as others
>
> For 1, I'd edit (with a text editor) 
> {pythoncard}/tools/resourceEditor/modules/proprertyEditor.rsrc.py, and 
> change
>
>> 'title':'resourceEditor Property Editor',
>> 'size':(405, 270),
>
>
> to make the size bigger (maybe 450,290)
>
> Note that cvs latest of Pythoncard does contain a simple Sizer layout, 
> which can help, though only with fairly simple layouts - e.g. most 
> though not all of the samples, and all of the PythonCard tools except 
> findfiles (which already uses sizers).
> BUT the one thing it does not do is resize the entire window, so it 
> wouldn't solve the problem with the resourceEditor. However, you may 
> find it useful for your own apps.
>
>
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 によって変換されたページ (->オリジナル) /