Python-spe-users digest, Vol 1 #35 - 5 msgs

python-spe-users-request-tdrK/[email protected] Sun, 04 Dec 2005 12:00:14 +0100
Newsgroups gmane.comp.python.spe.user
Message-ID <[email protected]>
Send Python-spe-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.berlios.de/mailman/listinfo/python-spe-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-spe-users digest..."


_______________________________________________
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate _______________________________________________


Today's Topics:

   1. Find AND replace (Michele Petrazzo)
   2. SPE 0.8.0.c released! (SPE Stani's Python Editor)
   3. Volunteer needed for python23 releases for Windows (SPE Stani's Python Editor)
   4. Re: Pasting multiple lines into Shell - found it (Peter Schott)
   5. Re: Re: Pasting multiple lines into Shell - found it (SPE Stani's Python Editor)

--__--__--

Message: 1
Date: Sat, 03 Dec 2005 10:27:08 +0100
From: Michele Petrazzo <[email protected]>
To: [email protected]
Subject: [spe-users] Find AND replace
Reply-To: [email protected]

Hi,

I'm Michele, the user that ask you for modify the "Search and Replace" 
dialog into the wx mailing list.
I see that is only need to add a simple:

self.findDialog.Raise()

into the Parent.py file at line 475, after:

self.findDialog.data = data  # save a reference to it...

So now a user can press Ctrl-F on the keyboard and continue to write 
because it is already on the dialog.

Michele
-- 
Unipex srl

email: [email protected]
Tel:   0432 - 931511
Fax:   0432 - 931378
Cell:  328 - 3109973

--__--__--

Message: 2
Date: Sat, 3 Dec 2005 18:17:39 +0100
From: "SPE Stani's Python Editor" <[email protected]>
To: python-spe-users-tdrK/[email protected], python-spe-mac-tdrK/[email protected],
   python-spe-dev-tdrK/[email protected]
Cc: "[email protected]" <[email protected]>,
   Andrea Gavana <andrea_gavana-nc/[email protected]>
Subject: [spe-users] SPE 0.8.0.c released!
Reply-To: [email protected]

NEW RELEASE
Another pre-announcement to the SPE mailing lists... This release is
for those, who like close buttons on the tabs. This is a beta release,
to test if there are problems with this new tab feature. I tested it
on Mac & Windows and hope this will work well. The code for the tabs
was developped by Andrea Gavana and partly bugfixed by me.

CALL FOR HELP!!
I'm having problems implementing the encoding in the right way for
SPE. If anyone of you could help me to solve this issue once and for
ever, it would be very nice. This bug still prevents a lot of users to
choose for SPE. Don't help me, but help them ;-)
Contact me if you know the solution. For more info look at the bottom.
I have some nasty test files to verify your patches ;-)

DETAILS
:**Improved features**:

- Better tabs with close button and colors (white belongs to workspace)

:**Bug fixes**:

- encoding according to PEP
- browse folder
- win98 support for 'run in terminal'

:**Installation**:

- See http://pythonide.stani.be/manual/html/manual2.html
- There is now an update section for MacOS X!

:**Contributors**:

- Andrea Gavana (enhanced tabs)

:**Todo**:

- Show/hide shell (Mac)
- Drag and drop tabs

:**Development**:

- http://developer.berlios.de/mail/?group_id=4161

SVN 91
--
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
--
CALL FOR HELP (continued)
These codes deal with the encoding (1&2) and at the bottom (3) you'll
find a bug report...

1
getEncoding in Child.py  (about line 1117):
    def getEncoding(self,source):
        if source.startswith(u'\xef\xbb\xbf'):
            self.encoding = "utf8"
            return
        first2lines         = "".join(source.split("\n")[:2])
        encode_hit          = RE_ENCODING.search(first2lines)
        if encode_hit:
            #find in source
            self.encoding   = encode_hit.group(1)
        else:
            #get default values
            if self.parentPanel.defaultEncoding == '<default>':
                #wx.GetDefaultPyEncoding() when SPE was launched
                self.encoding   = INFO['encoding']
            else:
                #as in preferences
                self.encoding   = self.parentPanel.defaultEncoding
        if self.encoding == 'ascii':
            #avoid obvious trap
            try:
                str(source)
            except:
                self.setStatus('Warning: SPE uses "utf8" instead of
"ascii" codec.')
                self.encoding   = 'utf8'
        self.encoding = str(self.encoding)

2
updateExplore in Child.py (about line 813):
            encode_hit  = False
            if line < 3:
                if line == 0 and l.startswith(u'\xef\xbb\xbf'):
                    self.encoding = "utf8"
                    encode_hit = True
                else:
                    enc = RE_ENCODING.search(l)
                    if enc:
                        self.encoding = str(enc.group(1))
                        encode_hit = True

3
SPE v0.8.0.c (c)2003-2005 www.stani.be

Spe is running in debugging mode with this configuration:
- platform  : linux2
- python    : 2.3.5
- wxPython  : 2.6.1.0.
- interface : <default>
- encoding  : ISO8859-1

Launching application...

<-cut->

Opening
/home/michele/mnt/LINUX-UNIPEX/sviluppo/FreeImagePy/FreeImagePy/FreeImagePy.py
Create: MdiSplit: <class 'sm.wxp.smdi.MdiSplitChildFrame'>
FreeImagePy.py /home/michele/mnt/LINUX-UNIPEX/sviluppo/FreeImagePy/FreeImage
Py/FreeImagePy.py
Create: Sdi:   <class 'sm.wxp.smdi.MdiSplitChildFrame'>.tabs
Traceback (most recent call last):
  File "SPE.py", line 200, in ?
    style           = style)
  File "/home/michele/tmp/spe/trunk/_spe/sm/wxp/smdi.py", line 1197, in
__init__
    wx.App.__init__(self,redirect=not debug)

<-cut->

 File "/home/michele/tmp/spe/trunk/_spe/Child.py", line 105, in __finish__
    self.__source__(self._fileName,self._source)
  File "/home/michele/tmp/spe/trunk/_spe/Child.py", line 227, in __source__
    self.revert(source)
  File "/home/michele/tmp/spe/trunk/_spe/Child.py", line 1025, in revert
    self.getEncoding(source)
  File "/home/michele/tmp/spe/trunk/_spe/Child.py", line 1110, in
getEncoding
    if source.startswith(u'\xef\xbb\xbf'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position
21184: ordinal not in range(128)


If I delete my ~/.spe directory, spe work well. I think that I have a
char into my FreeImagePy file that doesn't like to spe, but the "old"
version 0.8.0a worked well with the same souces.

The same appear if I delete .spe directory and try to open the same file.


Michele

--__--__--

Message: 3
Date: Sat, 3 Dec 2005 18:40:22 +0100
From: "SPE Stani's Python Editor" <[email protected]>
To: python-spe-users-tdrK/[email protected], python-spe-dev-tdrK/[email protected]
Subject: [spe-users] Volunteer needed for python23 releases for Windows
Reply-To: [email protected]

Hi,
I have switched to Python2.4 Therefore it is impossible for me to make
windows installers for python23. This is however extremely easy, you
don't have to know even python for this. All you have to do is,
download the source tar.gz archive, unzip it and type this at the
command prompt:
>>> python setup.py bdist_wininst

This will create automatically the windows installer for python23. Now
my question is, does anyone of you want to do this for new releases?
I'll give you release rights so you can post this release on BerliOS
and SourceForge.

You'll make a lot people happy and contribute to SPE's succes.
Moreover you'll have the windows installer for yourself, which you'll
need if you want the shortcuts in the start menu and integration in
explorer.

Thanks in advance,
Stani
--
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html

--__--__--

Message: 4
Date: Sat, 3 Dec 2005 11:32:35 -0800 (PST)
From: Peter Schott <paschott-/[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] Re: Pasting multiple lines into Shell - found it
Reply-To: [email protected]

--0-1083418205-1133638355=:55137
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Don't know if anyone else cared about being able to do this, but I found the shortcut within PyCrust that allows this.  (At least for windows)

CTRL+SHIFT+V - pastes each line individually and executes it - very handy to copy bits of script into an interactive window to start from.

Thanks for the pointers on where to find this.

-Pete


--0-1083418205-1133638355=:55137
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div id="RTEContent">Don't know if anyone else cared about being able to do this, but I found the shortcut within PyCrust that allows this.&nbsp; (At least for windows)<br><br>CTRL+SHIFT+V - pastes each line individually and executes it - very handy to copy bits of script into an interactive window to start from.<br><br>Thanks for the pointers on where to find this.<br><br>-Pete<br></div>
--0-1083418205-1133638355=:55137--

--__--__--

Message: 5
Date: Sat, 3 Dec 2005 20:46:24 +0100
From: "SPE Stani's Python Editor" <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: Re: [spe-users] Re: Pasting multiple lines into Shell - found it
Reply-To: [email protected]

Hi Peter,
Do you know the responsible method? Then I could automate it and add
it in the menu.
Thanks,
Stani

On 12/3/05, Peter Schott <paschott-/[email protected]> wrote:
> Don't know if anyone else cared about being able to do this, but I found the
> shortcut within PyCrust that allows this.  (At least for windows)
>
> CTRL+SHIFT+V - pastes each line individually and executes it - very handy to
> copy bits of script into an interactive window to start from.
>
> Thanks for the pointers on where to find this.
>
> -Pete
>


--
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html


--__--__--

_______________________________________________
Python-spe-users mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/python-spe-users


End of Python-spe-users Digest