<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wxpython &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/wxpython/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sun, 13 Jun 2010 09:32:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>wxpython &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SEPY 1.0.6.3 testing version</title>
		<link>https://blog.sephiroth.it/2005/01/12/sepy-1-0-6-3-testing-version/</link>
					<comments>https://blog.sephiroth.it/2005/01/12/sepy-1-0-6-3-testing-version/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 12 Jan 2005 16:47:08 +0000</pubDate>
				<category><![CDATA[SEPY]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[wxpython]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=52</guid>

					<description><![CDATA[sepy 1.0.6.3<br />
]]></description>
										<content:encoded><![CDATA[<p>I just uploaded a new version on the sourceforge site (1.0.6.3).<br />
With this version I started with some testing on various features I would like to use in the version 2 of SEPY.<br />
In fact I left the old XML based system for internationalization in order to start using python gettext and <a href="http://wiki.wxpython.org/index.cgi/Internationalization">wxPython i18n</a> support.  It also has been added a feature in the preference panel (under autocompletion tab) which allow user to define the builtin classpath used by the program  It&#8217;s a testing version, for this reason pay attention with it and please report to me problems.</p>
<p>P.S. Actually there are is english, french and italian translation (because this is only for testing purposes), if you&#8217;re interested on how to had your language support i will write the steps for install more languages</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2005/01/12/sepy-1-0-6-3-testing-version/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SE&#124;PY ActionScript editor 1.0.3.3</title>
		<link>https://blog.sephiroth.it/2004/07/23/sepy-actionscript-editor-1-0-3-3/</link>
					<comments>https://blog.sephiroth.it/2004/07/23/sepy-actionscript-editor-1-0-3-3/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sat, 24 Jul 2004 06:28:28 +0000</pubDate>
				<category><![CDATA[SEPY]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wxpython]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=19</guid>

					<description><![CDATA[I&#8217;ve just uploaded a new version (1.0.3.3) of SEPY ActionScript Editor. In this version: Minor graphical changes fixed: [ 994202 ] Cancel New project Error fixed: [ 994203 ] Missing tooltip (minor bug) Removed &#8220;;&#8221; after closing bracket &#8220;}&#8221; in the autoformat code. Added option for use the auto-indent feature Switched to wxPython 2.5.2.3pu-20040722 Changes &#8230; <a href="https://blog.sephiroth.it/2004/07/23/sepy-actionscript-editor-1-0-3-3/" class="more-link">Continue reading <span class="screen-reader-text">SE&#124;PY ActionScript editor 1.0.3.3</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="normalText">I&#8217;ve just uploaded a new version (1.0.3.3) of <strong>SEPY ActionScript Editor</strong>.<br />
In this version: </span></p>
<ul>
<li>Minor graphical changes</li>
<li>fixed: [ 994202 ] Cancel New project Error</li>
<li>fixed: [ 994203 ] Missing tooltip (minor bug)</li>
<li>Removed &#8220;;&#8221; after closing bracket &#8220;}&#8221; in the autoformat code.</li>
<li>Added option for use the auto-indent feature</li>
<li>Switched to <a href="http://starship.python.net/crew/robind/wxPython/daily/20040722/">wxPython 2.5.2.3pu-20040722</a></li>
<li>Changes in the Flash Help window.</li>
</ul>
<p>Download the <a href="http://sourceforge.net/project/showfiles.php?group_id=90749&amp;package_id=95496">Windows installer</a><br />
Download the <a href="http://sourceforge.net/project/showfiles.php?group_id=90749&amp;package_id=107862">source code</a></p>
<p>As always, thanks to all the people who help me with bugs reporting. It&#8217;s essential for the project development.<br />
P.S. I&#8217;ve noticed that <a href="http://www.python.org/">python</a> group just released the first alpha of python 2.4. Once released the final release I will switch to the new version.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2004/07/23/sepy-actionscript-editor-1-0-3-3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>wxPython and Flash, first test</title>
		<link>https://blog.sephiroth.it/2004/05/25/wxpython-and-flash-first-test/</link>
					<comments>https://blog.sephiroth.it/2004/05/25/wxpython-and-flash-first-test/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 25 May 2004 19:21:26 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[SEPY]]></category>
		<category><![CDATA[wxpython]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=11</guid>

					<description><![CDATA[Today I make the first test integrating a Flash movie into a python application and using a communication between the two applications using FSCommand and the flashvars. The result (surprendent easy) it&#8217;s a simple movie which enables text files saving in the local computer (through a prompt dialog window), but it has already opened my &#8230; <a href="https://blog.sephiroth.it/2004/05/25/wxpython-and-flash-first-test/" class="more-link">Continue reading <span class="screen-reader-text">wxPython and Flash, first test</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="normalText"><br />
Today I make the first test integrating a Flash movie into a python application and using a communication between the two applications using FSCommand and the flashvars.<br />
The result (surprendent easy) it&#8217;s a simple movie which enables text files saving in the local computer (through a prompt dialog window), but it has already opened my mind to future real cool applications 😉</p>
<p>This is the python code, the core part it&#8217;s the &#8220;wx.lib.flashwin&#8221; import, which enable to use Flash ActiveX in a python frame</p>
<pre>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx, sys, os
import string, codecs
from wx.lib.flashwin import FlashWindow
from wx.lib.flashwin import EVT_FSCommand
#----------------------------------------

class TestPanel(wx.Panel):
    def __init__(self, parent, base, swf):
        wx.Panel.__init__(self, parent, -1)
        self.base = base
        sizer = wx.BoxSizer(wx.VERTICAL)
        self.flash = FlashWindow(self, style=wx.SUNKEN_BORDER)   
        dlg = wx.MessageDialog(self, "This will work only under Windows!","Warning!",wx.OK | wx.ICON_INFORMATION)
        dlg.Center()
        dlg.ShowModal()        
        wx.BeginBusyCursor()
        try:
            self.flash.LoadMovie(0, swf)
        except:
            wx.MessageDialog(self, "could not load the swf file","Error",wx.OK | wx.ICON_ERROR).ShowModal()
            sys.exit(2)
        wx.EndBusyCursor()        
        self.flash.Stop()      
        self.flash.SetSize((self.flash.GetSize()[0],self.flash.GetSize()[1]))
        # sizer
        sizer.Add(self.flash, 1, wx.EXPAND)
        self.SetSizer(sizer)
        self.SetAutoLayout(True)
        sizer.Fit(self)
        sizer.SetSizeHints(self)        
        self.SetFlashOptions()
        self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroy)
        self.Bind(EVT_FSCommand, self.CallMethod)
        
    def SetFlashOptions(self):
        self.flash.menu = False
        self.flash._set_FlashVars("data=Server started on " + sys.platform)
        self.flash.Play()
        
    def OnDestroy(self, evt):
        if self.flash:
            self.flash.Cleanup()
            self.flash = None

    # Called from Flash FSCommand
    def CallMethod(self, evt):
        try:
            arguments = string.split(evt.args,"###")
            filename = arguments[0]
            body = arguments[1]
            if filename == "" or body == "":
                wx.MessageDialog(self, "Please check data inserted", "An Error occurred", wx.OK | wx.ICON_INFORMATION).ShowModal()
            else:
                dlg = wx.FileDialog(self, "Save as..." , os.getcwd(), filename, "*.*", wx.SAVE | wx.OVERWRITE_PROMPT )
                if dlg.ShowModal() == wx.ID_OK:
                    try:
                        f = codecs.open(os.path.normpath(dlg.GetPath()), "w", "utf-8", "ignore")
                        f.write(codecs.utf_8_decode(codecs.BOM_UTF8)[0])
                        f.write(body)
                        f.close()
                        self.flash._set_FlashVars("data=Succesfully saved text file")
                    except:
                        wx.MessageDialog(self, "%s %s %s" % sys.exc_info(), "An Error occurred", wx.OK | wx.ICON_ERROR).ShowModal()
                        self.flash._set_FlashVars("data=%s %s %s" % sys.exc_info())
        except:
            wx.MessageDialog(self, "Please check data inserted","An Error occurred",wx.OK | wx.ICON_INFORMATION).ShowModal()
            self.flash._set_FlashVars("data=%s %s %s" % sys.exc_info())
#-------------------------------------------
if __name__ == '__main__':
    class TestFrame(wx.Frame):
        def __init__(self):
            wx.Frame.__init__(self, None, -1, "ActiveX -- Flash", size=(640, 480), style=wx.DEFAULT_FRAME_STYLE )
            base = os.path.normpath(os.path.abspath(os.path.dirname(sys.argv[0])))
            swf = os.path.normpath(os.path.join(base, "movie.swf"))
            self.tp = TestPanel(self, base, swf)
    app = wx.PySimpleApp()
    frame = TestFrame()
    frame.Center()
    frame.Show(True)    
    app.MainLoop()
</pre>
<p>the flash part is really easy. Two text field, one button and one line of code!:</p>
<pre>on (click) {	fscommand("saveFile", this._parent.fnome.text + "###" + this._parent.ftesto.text)}</pre>
<p>
P.S. Moreover today I read in wxPython mailing list a coming new version of wxPython. I hope this will begin to fix varoius problems with Mac installation of SE|PY
</p>
<p></span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2004/05/25/wxpython-and-flash-first-test/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
