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

Showing results of 5121

<< < 1 2 3 4 .. 205 > >> (Page 2 of 205)
From: John A. <joh...@gm...> - 2012年06月04日 18:56:07
Hello. I'm having problems with running PythonCard on Ubuntu 12.04 LTS
Precise Pangolin. I do have wxPython installed for the natty release which
seems to work just fine. However since there was only a .rpm version of
PythonCard, I used alien to convert it to deb. I did install the .deb
package. When I tried to run minimal.py the terminal returned Permission
denied. So I found on a forum that this might be due to the fact that it's
not an executable file. I then ran chmod +x to make it executable and
eventually when I ran minimal.py itself the terminal returned:
"Traceback (most recent call last):
 File "./minimal.py", line 8, in <module>
 from PythonCard import model
ImportError: No module named PythonCard"
I think something went wrong when I installed the converted .rpm to .deb
package but who knows. I'm really new to Linux but I'd really appreciate it
if you could help me. Thanks in advance.
From: Kevin A. <al...@se...> - 2012年06月04日 14:24:18
Yes, the main_is_frozen method is the only thing that gets changed.
ka
On Jun 3, 2012, at 11:05 PM, hra...@kt... wrote:
> 
> After you have PythonCard installed, it will be necessary to make a
> modification to the file util.py located at
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PythonCard/util.py
> 
I opened this file in BBEdit and it has 420 lines of code.
> In util.py, change the following method to simplify the bundlebuilder
> check rather than having it checking for specific versions of MacPython...
> 
> def main_is_frozen():
> if sys.platform == 'darwin':
> # this is a temporary hack for bundlebuilder
> return not (sys.executable.endswith('Resources/Python.app/
> Contents/MacOS/Python'))
> else:
> return (hasattr(sys, "frozen") or # new py2exe, McMillan
> hasattr(sys, "importers") # old py2exe
> or imp.is_frozen("__main__")) # tools/freeze, cx_freeze
> 
Does this code replace the block of lines 14 through 23?
> I tried installing PythonCard 0.8.2 on a new Mac OS X Lion machine and ran
> into an old problem. The solution (update a method in util.py) was posted
> on this list back in July 2009, but I thought I would recap what to do if
> you want to run PythonCard on a Mac today. If you follow the instructions
> and still have a problem, please respond to this message. This is mostly a
> recap of the existing install directions on the main PythonCard site, but
> with updated Python and wxPython links.
>
> I downloaded Python 2.7.3 universal...
> http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg
> wxPython...
> http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg
> and PythonCard...
> http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.2.tar.gz
>
> I ran Python.mpkg after mounting the Python disk image.
>
> I verified that Python was installed correctly by opening the Terminal
> application and typing python at the command-prompt:
>
> My-MacBook-Air:~ nobody$ python
> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>
> Type Control-d to exit Python.
>
> I ran the wxPython pkg after mounting the wxPython disk image.
>
> Double-clicking on PythonCard-0.8.2.tar.gz decompressed PythonCard-0.8.2
> folder into the downloads folder. Then with the Terminal window still open
> I switched to the directory and ran the installer. If you downloaded
> PythonCard to a different directory, then use that directory instead of
> Downloads.
>
> cd ~/Downloads/PythonCard-0.8.2
> sudo python setup.py install
>
> You'll be prompted to type your password.
>
> After you have PythonCard installed, it will be necessary to make a
> modification to the file util.py located at
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PythonCard/util.py
>
I opened this file in BBEdit and it has 420 lines of code.
> In util.py, change the following method to simplify the bundlebuilder
> check rather than having it checking for specific versions of MacPython...
>
> def main_is_frozen():
> if sys.platform == 'darwin':
> # this is a temporary hack for bundlebuilder
> return not (sys.executable.endswith('Resources/Python.app/
> Contents/MacOS/Python'))
> else:
> return (hasattr(sys, "frozen") or # new py2exe, McMillan
> hasattr(sys, "importers") # old py2exe
> or imp.is_frozen("__main__")) # tools/freeze, cx_freeze
>
Does this code replace the block of lines 14 through 23?
> That was the only change I had to make to get the samples, resourceEditor,
> codeEditor, etc. to run on OS X Lion 10.7.4 using Python 2.7.3 universal
> and wxPython 2.8.12.1 unicode and PythonCard 0.8.2 downloaded from
> SourceForge.
>
> Since I installed the universal version of Python, it is necessary to
> specify to use the 32-bit version of python since the version of wxPython
> is limited to running in 32-bit mode because it uses the Carbon API. I'm
> not recommending installing the 32-bit version of Python because I don't
> think it supports OS X 10.7 (Lion).
>
> In Python Launcher specify /usr/local/bin/python-32 or
> /usr/local/bin/pythonw-32 for running scripts. From the terminal just type
> python-32 where you would have typed python for running from the
> command-line. For some reason, Python Launcher stays open after launching
> scripts. I don't know if that is a OS X Lion bug or something else that
> I've missed. I don't have that problem on my Snow Leopard boxes.
>
> Finally, as far as I can tell, there is no way to get Run or Run with
> interpreter menu items in the resourceEditor and codeEditor to work with
> the current universal build of Python and wxPython. The error message says
> there is 'no matching architecture in universal wrapper'. I'm guessing
> that if you install a 32-bit version of Python and wxPython that problem
> would go away. Instead, just run scripts from the terminal or Finder.
>
> ka
>
Thank you for help, Ivan
 ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
From: Kevin A. <al...@se...> - 2012年06月02日 22:10:27
I tried installing PythonCard 0.8.2 on a new Mac OS X Lion machine and ran into an old problem. The solution (update a method in util.py) was posted on this list back in July 2009, but I thought I would recap what to do if you want to run PythonCard on a Mac today. If you follow the instructions and still have a problem, please respond to this message. This is mostly a recap of the existing install directions on the main PythonCard site, but with updated Python and wxPython links.
I downloaded Python 2.7.3 universal...
http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg
wxPython...
http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg
and PythonCard...
http://prdownloads.sourceforge.net/pythoncard/PythonCard-0.8.2.tar.gz
I ran Python.mpkg after mounting the Python disk image.
I verified that Python was installed correctly by opening the Terminal application and typing python at the command-prompt:
My-MacBook-Air:~ nobody$ python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Type Control-d to exit Python.
I ran the wxPython pkg after mounting the wxPython disk image.
Double-clicking on PythonCard-0.8.2.tar.gz decompressed PythonCard-0.8.2 folder into the downloads folder. Then with the Terminal window still open I switched to the directory and ran the installer. If you downloaded PythonCard to a different directory, then use that directory instead of Downloads.
cd ~/Downloads/PythonCard-0.8.2
sudo python setup.py install
You'll be prompted to type your password.
After you have PythonCard installed, it will be necessary to make a modification to the file util.py located at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PythonCard/util.py
In util.py, change the following method to simplify the bundlebuilder check rather than having it checking for specific versions of MacPython...
def main_is_frozen():
 if sys.platform == 'darwin':
 # this is a temporary hack for bundlebuilder
 return not (sys.executable.endswith('Resources/Python.app/ Contents/MacOS/Python'))
 else:
 return (hasattr(sys, "frozen") or # new py2exe, McMillan
 hasattr(sys, "importers") # old py2exe
 or imp.is_frozen("__main__")) # tools/freeze, cx_freeze
That was the only change I had to make to get the samples, resourceEditor, codeEditor, etc. to run on OS X Lion 10.7.4 using Python 2.7.3 universal and wxPython 2.8.12.1 unicode and PythonCard 0.8.2 downloaded from SourceForge.
Since I installed the universal version of Python, it is necessary to specify to use the 32-bit version of python since the version of wxPython is limited to running in 32-bit mode because it uses the Carbon API. I'm not recommending installing the 32-bit version of Python because I don't think it supports OS X 10.7 (Lion).
In Python Launcher specify /usr/local/bin/python-32 or /usr/local/bin/pythonw-32 for running scripts. From the terminal just type python-32 where you would have typed python for running from the command-line. For some reason, Python Launcher stays open after launching scripts. I don't know if that is a OS X Lion bug or something else that I've missed. I don't have that problem on my Snow Leopard boxes.
Finally, as far as I can tell, there is no way to get Run or Run with interpreter menu items in the resourceEditor and codeEditor to work with the current universal build of Python and wxPython. The error message says there is 'no matching architecture in universal wrapper'. I'm guessing that if you install a 32-bit version of Python and wxPython that problem would go away. Instead, just run scripts from the terminal or Finder.
ka
From: John H. <ec...@ya...> - 2012年04月09日 18:06:49
There is a sample dialog app "\PythonCard\samples\dialogs\dialogs.py"
On 4/6/2012 8:12 AM, Mark Heinze wrote:
> Well, I've spent 4 months learning (by doing) Python and Pythoncard, 
> and have now completed a
> small program to find gear ratios in a specific gear train.
> All works satisfactorily with the calculations and the GUI.
> I got scrolledMessageDialog windows to work too.
>
> Calculation results I have written to a txt file.
> The last thing I would like to do is to be able to choose the path 
> where to write the results.
> I've seen dialog.py and the html file for it and studied them to death.
> The way "dialog.saveFileDialog" operates is exactly what I want.
> I just can't get it to work. No dialog window pops up in my app.
> Does anyone have a small app in which this is used so that I can 
> figure out what I'm missing?
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
From: Mark H. <maa...@gm...> - 2012年04月06日 15:12:46
Well, I've spent 4 months learning (by doing) Python and Pythoncard, and
have now completed a
small program to find gear ratios in a specific gear train.
All works satisfactorily with the calculations and the GUI.
I got scrolledMessageDialog windows to work too.
Calculation results I have written to a txt file.
The last thing I would like to do is to be able to choose the path where to
write the results.
I've seen dialog.py and the html file for it and studied them to death.
The way "dialog.saveFileDialog" operates is exactly what I want.
I just can't get it to work. No dialog window pops up in my app.
Does anyone have a small app in which this is used so that I can figure out
what I'm missing?
From: John H. <ec...@ya...> - 2012年03月26日 20:36:16
For me and the kind of general applications I develop for my clients, 
Pythoncard is by far the best and most efficient tool. I've done a 
number of enhancements over the years (google is your friend). 
Unfortunately not enough people get excited about Pythoncard any more. 
I can't understand it neither. Life can be so simple.
To be honest, I haven't had much need to write new programs for a while 
and so I don't remember what I use actionbindings for. I'll look it up 
and post an answer later.
On 3/25/2012 6:51 AM, Mark Heinze wrote:
> Hello Pythoncard users,
>
> I'm new to Python and just creating my first application with Pythoncard.
>
> The "resourceEditor Property Editor" is appreciatively simple to use 
> so long as your component list is short.
> To reduce the amount of scrolling, I've modified the window and lists 
> sizes to be able to see more and subsequently have to scroll less.
> I've attached the modified rsrc file and a picture to show the effect 
> for anyone who wants to try/use it. Only position and size values were 
> modified.
>
> Attached 
> from C:\Python27\Lib\site-packages\PythonCard\tools\resourceEditor\modules 
> is propertyEditor.rsrc.py <http://propertyEditor.rsrc.py>
>
> Question: Under properties, what are "actionBindings"?
>
> Being new to the user group, I'm somewhat surprised at the dropping 
> activity on the list. Is there another product out that does a better 
> job than Pythoncard? Or, has Pythoncard development been stopped?
>
> Regards,
> Mark
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
From: Alec B. <wry...@gm...> - 2012年02月01日 04:57:15
I'm trying to display an ImageButton on top of an Image, and having some
trouble with the button disappearing behind the Image from time to time. I
know I'm asking for trouble by simply stacking these two assets, so its not
really surprising.
I tried dynamically setting the Image as a background image for the window,
but haven't been able to get that to work.
When working in straight wxPython, I do something like this:
fname = "background_image.jpg"
bmp = wx.Image(fname, wx.BITMAP_TYPE_ANY)
self.buffer = wx.BitmapFromImage(bmp)
dc = wx.BufferedDC(wx.ClientDC(self), self.buffer)
self.Bind(wx.EVT_PAINT, self.OnPaint)
def OnPaint(self, evt):
 dc = wx.BufferedPaintDC(self, self.buffer)
Can anyone think of a way to achieve this in PythonCard? I'd rather not
convert this project to straight wxPython if I can avoid it.
From: John S. <spe...@ya...> - 2011年10月11日 15:47:56
I'm not sure what I'm missing here. I have ArcGIS 10 on my machine, and with it, Python 2.6. I followed the instructions to get PythonCard (http://pythoncard.sourceforge.net/windows_installation.html), including downloading and installing wxPython2.8-win64-unicode-2.8.12.1-py26, but I did not see an automatic installer as stated in the instructions. I copied the PythonCard-0.8.2 folder to C:\Python26\ArcGIS10.0\Lib\site-packages, but minimal.py just flashes the system console window and then nothing happens. 
I also tried running minimal.py from IDLE just to see what might happen, and it says:
Traceback (most recent call last):
 File "C:\Python26\ArcGIS10.0\Lib\site-packages\PythonCard-0.8.2\samples\minimal\minimal.py", line 8, in <module>
  from PythonCard import model
ImportError: No module named PythonCard
Any help is appreciated. Thanks,
John
Do a file search and you should find it in the samples directory.
On 7/25/2011 5:02 AM, Diruba Jesmin wrote:
> Dear admin,
>
> System information, where i have installed the PythonCard.
>
> Operation system: Windows 7 Ultimate
> Python Version: python-2.6
> wxPython Version: wxPython2.8-win32-unicode-2.8.12.0-py26.exe
> PythonCard version: PythonCard-0.8.2
>
> But can't find minimal.py in the following place: 
> Python26\Lib\site-packages\PythonCard\samples.
>
> Looking for your comment.
>
> Thank You
>
>
> ------------------------------------------------------------------------------
> Storage Efficiency Calculator
> This modeling tool is based on patent-pending intellectual property that
> has been used successfully in hundreds of IBM storage optimization engage-
> ments, worldwide. Store less, Store more with what you own, Move data to
> the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Dear admin,
System information, where i have installed the PythonCard.
Operation system: Windows 7 Ultimate
Python Version: python-2.6
wxPython Version: wxPython2.8-win32-unicode-2.8.12.0-py26.exe
PythonCard version: PythonCard-0.8.2
But can't find minimal.py in the following place: Python26\Lib\site-packages\PythonCard\samples.
Looking for your comment.
Thank You
From: John H. <ec...@ya...> - 2011年06月29日 22:52:37
There are things I couldn't change neither (like the ICON for the 
window). I don't think it's a Pythoncard limitation. You might have to 
hunt for a wxPython solution and call it.
On 6/29/2011 2:31 PM, Alec Bennett wrote:
> I'm trying to change the background image of my PythonCard application 
> after its been initialized, and having trouble.
>
> By "background image" I mean the image that we set from Background 
> Info --> Image.
>
> I can dynamically change the background color like this:
>
> self.backgroundColor = (255, 255, 255)
>
> And looking at the resource file, the image is in a key called 
> "image". But this doesn't work:
>
> self.image = whatever.jpg
>
> Is there some other trick to it?
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
From: Alec B. <wry...@gm...> - 2011年06月29日 21:31:24
I'm trying to change the background image of my PythonCard application after
its been initialized, and having trouble.
By "background image" I mean the image that we set from Background Info -->
Image.
I can dynamically change the background color like this:
self.backgroundColor = (255, 255, 255)
And looking at the resource file, the image is in a key called "image". But
this doesn't work:
self.image = whatever.jpg
Is there some other trick to it?
From: Sriram S. <sri...@gm...> - 2011年06月27日 22:03:26
I think it is because the second system has got a lesser screen resolution.
Is there a way to make the application window scale according to the screen
resolution?
On Mon, Jun 27, 2011 at 2:53 PM, Sriram Samynathan <sri...@gm...>wrote:
> I developed my Python Card application on Python 64 bit running on Windows
> 7 64 bit OS. It has just one main window with a lot of components.
>
> Now, I am trying to run the application in another system with same OS but
> with Python 32 running, my Python Card application window is not displayed
> completely. Around 30 % of the window is not displayed.
>
> Is there a way to fix this?
>
> Thanks!
>
From: Sriram S. <sri...@gm...> - 2011年06月27日 21:53:15
I developed my Python Card application on Python 64 bit running on Windows 7
64 bit OS. It has just one main window with a lot of components.
Now, I am trying to run the application in another system with same OS but
with Python 32 running, my Python Card application window is not displayed
completely. Around 30 % of the window is not displayed.
Is there a way to fix this?
Thanks!
From: Lawrence A. <la...@gm...> - 2011年06月22日 05:12:25
On-line documentation is going to do a more thorough and accurate job
than I can do :( ....try these
http://wiki.wxpython.org/EventPropagation
http://wiki.wxpython.org/self.Bind%20vs.%20self.button.Bind
remembering PythonCard is a wrapper of wxpython
Cheers,
Lawrie
On Wed, Jun 22, 2011 at 6:14 AM, hwg <hw...@ya...> wrote:
> That's what I needed. Working perfectly now. (I also removed the
> unnecessary wx import.)
> I don't understand why I need the event.Skip(). If someone could explain,
> it would be much appreciated.
>
> hwg
>
> ________________________________
> From: Lawrence Abbott <la...@gm...>
> To: hwg <hw...@ya...>
> Cc: pythoncard-users <pyt...@li...>
> Sent: Tuesday, June 21, 2011 2:06 PM
> Subject: Re: [Pythoncard-users] Dynamically change font size of a TextArea
>
> Try adding an
>
> event.Skip()
>
> As mentioned previously - no need for the wx import.
>
> Cheers,
> Lawrie
>
> On Wed, Jun 22, 2011 at 1:43 AM, hwg <hw...@ya...> wrote:
>> Lawrie,
>>
>> That works. Thanks!
>>
>> I still have a weird issue where the Slider doesn't give up focus. I
>> start
>> dragging it, and when I release it (mouseUp), the event handler fires and
>> the font size changes. But I can't enter the TextArea, and the slider
>> still
>> moves around as I move the mouse, even with no mouse buttons pressed. I
>> can't access the TextArea or the Menu, and I can't even close the
>> PythonCard
>> app window without going into the IDE and stopping the script from there.
>>
>> Any idea what's causing this?
>>
>> Complete code is attached.
>>
>>
>> Thanks,
>> hwg
>>
>>
>> ________________________________
>> From: Lawrence Abbott <la...@gm...>
>> To: hwg <hw...@ya...>
>> Cc: pythoncard-users <pyt...@li...>
>> Sent: Tue, June 21, 2011 7:45:50 AM
>> Subject: Re: [Pythoncard-users] Dynamically change font size of a TextArea
>>
>> try
>> font = self.components.TextArea1.GetFont()
>>
>> instead of
>> font = self.components.TextArea1.font
>>
>> also you will need to ensure the slider output values are legitimate font
>> sizes
>> also should be no need to import wx with SetPointSize method
>>
>> Cheers,
>> Lawrie
>>
>>
>> On Tue, Jun 21, 2011 at 10:23 PM, hwg <hw...@ya...> wrote:
>>> I tried both of the methods below:
>>> I get the following error:
>>> Traceback (most recent call last):
>>> File "C:\Python25\lib\site-packages\PythonCard\widget.py", line 408, in
>>> _dispatch
>>> handler(background, aWxEvent)
>>> File
>>>
>>>
>>> "C:\Users\wsande\Documents\Warren\PythonScripts\PC_slider_text\pc_slider_text.py",
>>> line 11, in on_Slider1_mouseUp
>>> font.SetPointSize(sliderValue)
>>> AttributeError: 'Font' object has no attribute 'SetPointSize'
>>>
>>> Here's the complete code:
>>> # pc_slider_text.py
>>> # try to change the size of text font in a test box using a slider
>>>
>>> from wx import *
>>> from PythonCard import model
>>> class MainWindow(model.Background):
>>>   def on_Slider1_mouseUp(self, event):
>>>     sliderValue = self.components.Slider1.value
>>>     print sliderValue
>>>     font = self.components.TextArea1.font
>>>     font.SetPointSize(sliderValue)
>>>     self.components.TextArea1.SetFont(font)
>>>     print self.components.TextArea1.font
>>>
>>> app = model.Application(MainWindow)
>>> app.MainLoop()
>>>
>>> ________________________________
>>> From: Lawrence Abbott <la...@gm...>
>>> To: hwg <hw...@ya...>
>>> Sent: Monday, June 20, 2011 10:37 PM
>>> Subject: Re: [Pythoncard-users] Dynamically change font size of a
>>> TextArea
>>>
>>> A slightly cleaner way
>>>
>>>     font = self.components.TextArea1.GetFont()
>>>     font.SetPointSize(16)
>>>     self.components.TextArea1.SetFont(font)
>>>
>>> Cheers,
>>> Lawrie
>>>
>>> On Tue, Jun 21, 2011 at 12:26 PM, Lawrence Abbott <la...@gm...>
>>> wrote:
>>>> Hi,
>>>>
>>>> self.components.TextArea1.font_size = sliderValue
>>>>
>>>> doesnt work for me
>>>>
>>>> print self.components.TextArea1.font.size
>>>>
>>>> gives a dictionary of font attributes, but I can't get them to update
>>>> either
>>>>
>>>> import wx
>>>>
>>>> font_size =16
>>>>
>>>> font1 = self.components.TextArea1.GetFont()
>>>> font2 = wx.Font(font_size, font1.Family, font1.Style, font1.Weight)
>>>> self.components.TextArea1.SetFont( font2 )
>>>>
>>>> seems to work
>>>>
>>>> HTH,
>>>> Lawrie
>>>>
>>>> On Mon, Jun 20, 2011 at 2:27 AM, hwg <hw...@ya...> wrote:
>>>>> I tried:
>>>>>
>>>>> self.components.TextArea1.font_size = sliderValue
>>>>> It doesn't throw an exception, but it doesn't change the font size,
>>>>> either.
>>>>> Also, oddly, the slider never seems to lose focus. It keeps sliding
>>>>> back
>>>>> and forth even after the mouse is released and no longer over the
>>>>> slider. I
>>>>> can't get focus on the TextArea.
>>>>>
>>>>>
>>>>> - hwg
>>>>>
>>>>>
>>>>> ________________________________
>>>>> From: "ec...@gm..." <ec...@gm...>
>>>>> To: hwg <hw...@ya...>
>>>>> Cc: "pyt...@li..."
>>>>> <pyt...@li...>
>>>>> Sent: Saturday, June 18, 2011 11:45 PM
>>>>> Subject: Re: [Pythoncard-users] Dynamically change font size of a
>>>>> TextArea
>>>>>
>>>>> font is not a dictionary. It's a class. Try font._size
>>>>>
>>>>> On 6/17/2011 1:23 PM, hwg wrote:
>>>>>
>>>>> from PythonCard import model
>>>>> class MainWindow(model.Background):
>>>>>  def on_Slider1_mouseUp(self, event):
>>>>>    sliderValue = self.components.Slider1.value
>>>>>    self.components.TextArea1.font['size'] = sliderValue
>>>>>
>>>>> app = model.Application(MainWindow)
>>>>> app.MainLoop()
>>>>>
>>>>> --
>>>>> Kim Cheung
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> EditLive Enterprise is the world's most technically advanced content
>>>>> authoring tool. Experience the power of Track Changes, Inline Image
>>>>> Editing and ensure content is compliant with Accessibility Checking.
>>>>> http://p.sf.net/sfu/ephox-dev2dev
>>>>> _______________________________________________
>>>>> Pythoncard-users mailing list
>>>>> Pyt...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> EditLive Enterprise is the world's most technically advanced content
>>> authoring tool. Experience the power of Track Changes, Inline Image
>>> Editing and ensure content is compliant with Accessibility Checking.
>>> http://p.sf.net/sfu/ephox-dev2dev
>>> _______________________________________________
>>> Pythoncard-users mailing list
>>> Pyt...@li...
>>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>>>
>>>
>>
>
>
>
From: Lawrence A. <la...@gm...> - 2011年06月21日 21:06:41
Try adding an
event.Skip()
As mentioned previously - no need for the wx import.
Cheers,
Lawrie
On Wed, Jun 22, 2011 at 1:43 AM, hwg <hw...@ya...> wrote:
> Lawrie,
>
> That works. Thanks!
>
> I still have a weird issue where the Slider doesn't give up focus. I start
> dragging it, and when I release it (mouseUp), the event handler fires and
> the font size changes. But I can't enter the TextArea, and the slider still
> moves around as I move the mouse, even with no mouse buttons pressed. I
> can't access the TextArea or the Menu, and I can't even close the PythonCard
> app window without going into the IDE and stopping the script from there.
>
> Any idea what's causing this?
>
> Complete code is attached.
>
>
> Thanks,
> hwg
>
>
> ________________________________
> From: Lawrence Abbott <la...@gm...>
> To: hwg <hw...@ya...>
> Cc: pythoncard-users <pyt...@li...>
> Sent: Tue, June 21, 2011 7:45:50 AM
> Subject: Re: [Pythoncard-users] Dynamically change font size of a TextArea
>
> try
> font = self.components.TextArea1.GetFont()
>
> instead of
> font = self.components.TextArea1.font
>
> also you will need to ensure the slider output values are legitimate font
> sizes
> also should be no need to import wx with SetPointSize method
>
> Cheers,
> Lawrie
>
>
> On Tue, Jun 21, 2011 at 10:23 PM, hwg <hw...@ya...> wrote:
>> I tried both of the methods below:
>> I get the following error:
>> Traceback (most recent call last):
>> File "C:\Python25\lib\site-packages\PythonCard\widget.py", line 408, in
>> _dispatch
>> handler(background, aWxEvent)
>> File
>>
>> "C:\Users\wsande\Documents\Warren\PythonScripts\PC_slider_text\pc_slider_text.py",
>> line 11, in on_Slider1_mouseUp
>> font.SetPointSize(sliderValue)
>> AttributeError: 'Font' object has no attribute 'SetPointSize'
>>
>> Here's the complete code:
>> # pc_slider_text.py
>> # try to change the size of text font in a test box using a slider
>>
>> from wx import *
>> from PythonCard import model
>> class MainWindow(model.Background):
>>   def on_Slider1_mouseUp(self, event):
>>     sliderValue = self.components.Slider1.value
>>     print sliderValue
>>     font = self.components.TextArea1.font
>>     font.SetPointSize(sliderValue)
>>     self.components.TextArea1.SetFont(font)
>>     print self.components.TextArea1.font
>>
>> app = model.Application(MainWindow)
>> app.MainLoop()
>>
>> ________________________________
>> From: Lawrence Abbott <la...@gm...>
>> To: hwg <hw...@ya...>
>> Sent: Monday, June 20, 2011 10:37 PM
>> Subject: Re: [Pythoncard-users] Dynamically change font size of a TextArea
>>
>> A slightly cleaner way
>>
>>     font = self.components.TextArea1.GetFont()
>>     font.SetPointSize(16)
>>     self.components.TextArea1.SetFont(font)
>>
>> Cheers,
>> Lawrie
>>
>> On Tue, Jun 21, 2011 at 12:26 PM, Lawrence Abbott <la...@gm...>
>> wrote:
>>> Hi,
>>>
>>> self.components.TextArea1.font_size = sliderValue
>>>
>>> doesnt work for me
>>>
>>> print self.components.TextArea1.font.size
>>>
>>> gives a dictionary of font attributes, but I can't get them to update
>>> either
>>>
>>> import wx
>>>
>>> font_size =16
>>>
>>> font1 = self.components.TextArea1.GetFont()
>>> font2 = wx.Font(font_size, font1.Family, font1.Style, font1.Weight)
>>> self.components.TextArea1.SetFont( font2 )
>>>
>>> seems to work
>>>
>>> HTH,
>>> Lawrie
>>>
>>> On Mon, Jun 20, 2011 at 2:27 AM, hwg <hw...@ya...> wrote:
>>>> I tried:
>>>>
>>>> self.components.TextArea1.font_size = sliderValue
>>>> It doesn't throw an exception, but it doesn't change the font size,
>>>> either.
>>>> Also, oddly, the slider never seems to lose focus. It keeps sliding
>>>> back
>>>> and forth even after the mouse is released and no longer over the
>>>> slider. I
>>>> can't get focus on the TextArea.
>>>>
>>>>
>>>> - hwg
>>>>
>>>>
>>>> ________________________________
>>>> From: "ec...@gm..." <ec...@gm...>
>>>> To: hwg <hw...@ya...>
>>>> Cc: "pyt...@li..."
>>>> <pyt...@li...>
>>>> Sent: Saturday, June 18, 2011 11:45 PM
>>>> Subject: Re: [Pythoncard-users] Dynamically change font size of a
>>>> TextArea
>>>>
>>>> font is not a dictionary. It's a class. Try font._size
>>>>
>>>> On 6/17/2011 1:23 PM, hwg wrote:
>>>>
>>>> from PythonCard import model
>>>> class MainWindow(model.Background):
>>>>  def on_Slider1_mouseUp(self, event):
>>>>    sliderValue = self.components.Slider1.value
>>>>    self.components.TextArea1.font['size'] = sliderValue
>>>>
>>>> app = model.Application(MainWindow)
>>>> app.MainLoop()
>>>>
>>>> --
>>>> Kim Cheung
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> EditLive Enterprise is the world's most technically advanced content
>>>> authoring tool. Experience the power of Track Changes, Inline Image
>>>> Editing and ensure content is compliant with Accessibility Checking.
>>>> http://p.sf.net/sfu/ephox-dev2dev
>>>> _______________________________________________
>>>> Pythoncard-users mailing list
>>>> Pyt...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>>>>
>>>>
>>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>> _______________________________________________
>> Pythoncard-users mailing list
>> Pyt...@li...
>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>>
>>
>
From: John H. <ec...@ya...> - 2011年06月21日 16:46:26
You need to post the rsrc file as well. Then others can try running the 
code on their side.
On 6/21/2011 7:23 AM, hwg wrote:
> I tried both of the methods below:
>
> I get the following error:
>
> Traceback (most recent call last):
> File "C:\Python25\lib\site-packages\PythonCard\widget.py", line 408, 
> in _dispatch
> handler(background, aWxEvent)
> File 
> "C:\Users\wsande\Documents\Warren\PythonScripts\PC_slider_text\pc_slider_text.py", 
> line 11, in on_Slider1_mouseUp
> font.SetPointSize(sliderValue)
> AttributeError: 'Font' object has no attribute 'SetPointSize'
>
> Here's the complete code:
>
> # pc_slider_text.py <http://pc_slider_text.py/>
> # try to change the size of text font in a test box using a slider
>
> from wx import *
> from PythonCard import model
> class MainWindow(model.Background):
> def on_Slider1_mouseUp(self, event):
> sliderValue = self.components.Slider1.value
> print sliderValue
> font = self.components.TextArea1.font
> font.SetPointSize(sliderValue)
> self.components.TextArea1.SetFont(font)
> print self.components.TextArea1.font
>
> app = model.Application(MainWindow)
> app.MainLoop()
>
> ------------------------------------------------------------------------
> *From:* Lawrence Abbott <la...@gm...>
> *To:* hwg <hw...@ya...>
> *Sent:* Monday, June 20, 2011 10:37 PM
> *Subject:* Re: [Pythoncard-users] Dynamically change font size of
> a TextArea
>
> A slightly cleaner way
>
> font = self.components.TextArea1.GetFont()
> font.SetPointSize(16)
> self.components.TextArea1.SetFont(font)
>
> Cheers,
> Lawrie
>
> On Tue, Jun 21, 2011 at 12:26 PM, Lawrence Abbott
> <la...@gm... <mailto:la...@gm...>> wrote:
> > Hi,
> >
> > self.components.TextArea1.font_size = sliderValue
> >
> > doesnt work for me
> >
> > print self.components.TextArea1.font.size
> >
> > gives a dictionary of font attributes, but I can't get them to
> update either
> >
> > import wx
> >
> > font_size =16
> >
> > font1 = self.components.TextArea1.GetFont()
> > font2 = wx.Font(font_size, font1.Family, font1.Style, font1.Weight)
> > self.components.TextArea1.SetFont( font2 )
> >
> > seems to work
> >
> > HTH,
> > Lawrie
> >
> > On Mon, Jun 20, 2011 at 2:27 AM, hwg <hw...@ya...
> <mailto:hw...@ya...>> wrote:
> >> I tried:
> >>
> >> self.components.TextArea1.font_size = sliderValue
> >> It doesn't throw an exception, but it doesn't change the font
> size, either.
> >> Also, oddly, the slider never seems to lose focus. It keeps
> sliding back
> >> and forth even after the mouse is released and no longer over
> the slider. I
> >> can't get focus on the TextArea.
> >>
> >>
> >> - hwg
> >>
> >>
> >> ________________________________
> >> From: "ec...@gm... <mailto:ec...@gm...>"
> <ec...@gm... <mailto:ec...@gm...>>
> >> To: hwg <hw...@ya... <mailto:hw...@ya...>>
> >> Cc: "pyt...@li...
> <mailto:pyt...@li...>"
> >> <pyt...@li...
> <mailto:pyt...@li...>>
> >> Sent: Saturday, June 18, 2011 11:45 PM
> >> Subject: Re: [Pythoncard-users] Dynamically change font size of
> a TextArea
> >>
> >> font is not a dictionary. It's a class. Try font._size
> >>
> >> On 6/17/2011 1:23 PM, hwg wrote:
> >>
> >> from PythonCard import model
> >> class MainWindow(model.Background):
> >> def on_Slider1_mouseUp(self, event):
> >> sliderValue = self.components.Slider1.value
> >> self.components.TextArea1.font['size'] = sliderValue
> >>
> >> app = model.Application(MainWindow)
> >> app.MainLoop()
> >>
> >> --
> >> Kim Cheung
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> EditLive Enterprise is the world's most technically advanced
> content
> >> authoring tool. Experience the power of Track Changes, Inline Image
> >> Editing and ensure content is compliant with Accessibility
> Checking.
> >> http://p.sf.net/sfu/ephox-dev2dev
> >> _______________________________________________
> >> Pythoncard-users mailing list
> >> Pyt...@li...
> <mailto:Pyt...@li...>
> >> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
> >>
> >>
> >
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
>
>
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
From: Lawrence A. <la...@gm...> - 2011年06月21日 14:45:57
try
font = self.components.TextArea1.GetFont()
instead of
font = self.components.TextArea1.font
also you will need to ensure the slider output values are legitimate font sizes
also should be no need to import wx with SetPointSize method
Cheers,
Lawrie
On Tue, Jun 21, 2011 at 10:23 PM, hwg <hw...@ya...> wrote:
> I tried both of the methods below:
> I get the following error:
> Traceback (most recent call last):
> File "C:\Python25\lib\site-packages\PythonCard\widget.py", line 408, in
> _dispatch
> handler(background, aWxEvent)
> File
> "C:\Users\wsande\Documents\Warren\PythonScripts\PC_slider_text\pc_slider_text.py",
> line 11, in on_Slider1_mouseUp
> font.SetPointSize(sliderValue)
> AttributeError: 'Font' object has no attribute 'SetPointSize'
>
> Here's the complete code:
> # pc_slider_text.py
> # try to change the size of text font in a test box using a slider
>
> from wx import *
> from PythonCard import model
> class MainWindow(model.Background):
>   def on_Slider1_mouseUp(self, event):
>     sliderValue = self.components.Slider1.value
>     print sliderValue
>     font = self.components.TextArea1.font
>     font.SetPointSize(sliderValue)
>     self.components.TextArea1.SetFont(font)
>     print self.components.TextArea1.font
>
> app = model.Application(MainWindow)
> app.MainLoop()
>
> ________________________________
> From: Lawrence Abbott <la...@gm...>
> To: hwg <hw...@ya...>
> Sent: Monday, June 20, 2011 10:37 PM
> Subject: Re: [Pythoncard-users] Dynamically change font size of a TextArea
>
> A slightly cleaner way
>
>     font = self.components.TextArea1.GetFont()
>     font.SetPointSize(16)
>     self.components.TextArea1.SetFont(font)
>
> Cheers,
> Lawrie
>
> On Tue, Jun 21, 2011 at 12:26 PM, Lawrence Abbott <la...@gm...> wrote:
>> Hi,
>>
>> self.components.TextArea1.font_size = sliderValue
>>
>> doesnt work for me
>>
>> print self.components.TextArea1.font.size
>>
>> gives a dictionary of font attributes, but I can't get them to update
>> either
>>
>> import wx
>>
>> font_size =16
>>
>> font1 = self.components.TextArea1.GetFont()
>> font2 = wx.Font(font_size, font1.Family, font1.Style, font1.Weight)
>> self.components.TextArea1.SetFont( font2 )
>>
>> seems to work
>>
>> HTH,
>> Lawrie
>>
>> On Mon, Jun 20, 2011 at 2:27 AM, hwg <hw...@ya...> wrote:
>>> I tried:
>>>
>>> self.components.TextArea1.font_size = sliderValue
>>> It doesn't throw an exception, but it doesn't change the font size,
>>> either.
>>> Also, oddly, the slider never seems to lose focus. It keeps sliding back
>>> and forth even after the mouse is released and no longer over the
>>> slider. I
>>> can't get focus on the TextArea.
>>>
>>>
>>> - hwg
>>>
>>>
>>> ________________________________
>>> From: "ec...@gm..." <ec...@gm...>
>>> To: hwg <hw...@ya...>
>>> Cc: "pyt...@li..."
>>> <pyt...@li...>
>>> Sent: Saturday, June 18, 2011 11:45 PM
>>> Subject: Re: [Pythoncard-users] Dynamically change font size of a
>>> TextArea
>>>
>>> font is not a dictionary. It's a class. Try font._size
>>>
>>> On 6/17/2011 1:23 PM, hwg wrote:
>>>
>>> from PythonCard import model
>>> class MainWindow(model.Background):
>>>  def on_Slider1_mouseUp(self, event):
>>>    sliderValue = self.components.Slider1.value
>>>    self.components.TextArea1.font['size'] = sliderValue
>>>
>>> app = model.Application(MainWindow)
>>> app.MainLoop()
>>>
>>> --
>>> Kim Cheung
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> EditLive Enterprise is the world's most technically advanced content
>>> authoring tool. Experience the power of Track Changes, Inline Image
>>> Editing and ensure content is compliant with Accessibility Checking.
>>> http://p.sf.net/sfu/ephox-dev2dev
>>> _______________________________________________
>>> Pythoncard-users mailing list
>>> Pyt...@li...
>>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>>>
>>>
>>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Pythoncard-users mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
>
From: John H. <ec...@ya...> - 2011年06月19日 13:25:32
On 6/18/2011 11:45 PM, ec...@gm... wrote:
> font is not a dictionary. It's a class. Try font._size
>
> On 6/17/2011 1:23 PM, hwg wrote:
>> from PythonCard import model
>> class MainWindow(model.Background):
>> def on_Slider1_mouseUp(self, event):
>> sliderValue = self.components.Slider1.value
>> self.components.TextArea1.font['size'] = sliderValue
>>
>> app = model.Application(MainWindow)
>> app.MainLoop()
>
>
> -- 
> Kim Cheung
From: hwg <hw...@ya...> - 2011年06月17日 20:23:23
Is it possible to dynamically (programatically) change the size of the font inside a Text Area?
 
I tried the following:
 
from PythonCard import model
class MainWindow(model.Background):
  def on_Slider1_mouseUp(self, event):
    sliderValue = self.components.Slider1.value
    self.components.TextArea1.font['size'] = sliderValue
 
app = model.Application(MainWindow)
app.MainLoop()
 
When I run this and move the slider, I get the error:
 
TypeError: 'Font' object does not support item assignment.
 
 
Is there a way to do this?
 
Thanks,
hwg
From: John H. <ec...@ya...> - 2011年06月16日 14:18:41
John, did it worked?
On 6/10/2011 2:54 AM, ec...@gm... wrote:
> John,
>
> Both 1 & 2 are requirements from using win32com - not Pythoncard 
> specific. Run the genpy program that comes with win32com and select 
> Acrobox active x support. #2 is Acrobat 9 related. I included a 
> modified version of pdfwin.py in my upload.
>
> In short:
>
> a) Install win32com
> b) Install wxpython
> c) Locate genpy.py and run it. Select Acrobat Active support.
> d) Update pdfwin.py to include Acrobat 9.0 support (compair original 
> version with the version I uploaded and should be obvious what need to 
> be done).
> e) Try without step 3. May be the newer version of win32com doesn't 
> require it any more.
>
> On 6/9/2011 1:55 PM, Wagner, John wrote:
>>
>> John Henry (or anyone who can help),
>>
>> I need to use the Pythoncard PDF viewer that you built. I downloaded 
>> it, put the component in the component directory, put the sample in 
>> the sample directory, but I don't know what to do with Win32com and 
>> genpy. When I run the LayoutEditor, the component shows up, but it 
>> will not load.
>>
>> You stated:
>>
>> 1)Run win32com's genpy to activate Acrobat activeX support
>>
>> 2) Mod to pdfwin.py in wxPython to support Acrobat 9.0. This is not 
>> Pythoncard specific. Native wxPython needs this mod too.
>>
>> 3) A mod to an interface file created by win32com. Have no idea why 
>> this hack is needed because native wxPython sample program runs fine 
>> without it. Hopefully somebody that knows what's going can remove 
>> this hack.
>>
>> It looks like this is something Pythoncard users are assumed to know, 
>> but it is new to me. Can you explain or point me to a resource that 
>> deals with this?
>>
>> Thanks,
>>
>> John W
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>>
>>
>> _______________________________________________
>> Pythoncard-users mailing list
>> Pyt...@li...
>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
>
> -- 
> Kim Cheung
From: John H. <ec...@ya...> - 2011年06月11日 00:50:52
On 6/10/2011 2:54 AM, ec...@gm... wrote:
> John,
>
> Both 1 & 2 are requirements from using win32com - not Pythoncard 
> specific. Run the genpy program that comes with win32com and select 
> Acrobox active x support. #2 is Acrobat 9 related. I included a 
> modified version of pdfwin.py in my upload.
>
> In short:
>
> a) Install win32com
> b) Install wxpython
> c) Locate genpy.py and run it. Select Acrobat Active support.
> d) Update pdfwin.py to include Acrobat 9.0 support (compair original 
> version with the version I uploaded and should be obvious what need to 
> be done).
> e) Try without step 3. May be the newer version of win32com doesn't 
> require it any more.
>
> On 6/9/2011 1:55 PM, Wagner, John wrote:
>>
>> John Henry (or anyone who can help),
>>
>> I need to use the Pythoncard PDF viewer that you built. I downloaded 
>> it, put the component in the component directory, put the sample in 
>> the sample directory, but I don't know what to do with Win32com and 
>> genpy. When I run the LayoutEditor, the component shows up, but it 
>> will not load.
>>
>> You stated:
>>
>> 1)Run win32com's genpy to activate Acrobat activeX support
>>
>> 2) Mod to pdfwin.py in wxPython to support Acrobat 9.0. This is not 
>> Pythoncard specific. Native wxPython needs this mod too.
>>
>> 3) A mod to an interface file created by win32com. Have no idea why 
>> this hack is needed because native wxPython sample program runs fine 
>> without it. Hopefully somebody that knows what's going can remove 
>> this hack.
>>
>> It looks like this is something Pythoncard users are assumed to know, 
>> but it is new to me. Can you explain or point me to a resource that 
>> deals with this?
>>
>> Thanks,
>>
>> John W
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>>
>>
>> _______________________________________________
>> Pythoncard-users mailing list
>> Pyt...@li...
>> https://lists.sourceforge.net/lists/listinfo/pythoncard-users
>
>
> -- 
> Kim Cheung
From: Wagner, J. <ja...@me...> - 2011年06月09日 21:29:33
John Henry (or anyone who can help),
I need to use the Pythoncard PDF viewer that you built. I downloaded it, put the component in the component directory, put the sample in the sample directory, but I don't know what to do with Win32com and genpy. When I run the LayoutEditor, the component shows up, but it will not load.
You stated:
1) Run win32com's genpy to activate Acrobat activeX support
2) Mod to pdfwin.py in wxPython to support Acrobat 9.0. This is not Pythoncard specific. Native wxPython needs this mod too.
3) A mod to an interface file created by win32com. Have no idea why this hack is needed because native wxPython sample program runs fine without it. Hopefully somebody that knows what's going can remove this hack.
It looks like this is something Pythoncard users are assumed to know, but it is new to me. Can you explain or point me to a resource that deals with this?
Thanks,
John W
From: Sriram S. <sri...@gm...> - 2011年06月08日 16:27:13
I will be writing into excel files as part of the process. I am using
'xlwt'. I also need to actually open the excel spreadsheet for display and
also close them. I found a function :
import webbrowser
webbrowser.open('C:/Users/300231823/Desktop/GUI/simplenew4.xls')
This seems to open the .xls file. How do I close the file ?
Thank you!
61 messages has been excluded from this view by a project administrator.

Showing results of 5121

<< < 1 2 3 4 .. 205 > >> (Page 2 of 205)
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 によって変換されたページ (->オリジナル) /