New peppy 0.14 with updating code explorer

0 views
Skip to first unread message

Rob McMullen

unread,
Dec 22, 2009, 8:30:06 PM12/22/09
to pepp...@googlegroups.com
Finally solved the issue of updating the code explorer when it's a
minor mode, so peppy can now be run in more like an IDE if you so
choose. I also updated to use the agw.aui toolkit instead of the
wx.aui one, and now save the layout of the main window on a per-file
basis. So, say you edit one file using the code explorer minor mode,
and another file you don't use any minor modes: the next time you
restart peppy, the first file will be restored with the code explorer
minor mode right there, while the second file won't. It should
remember the sizes of everything as well.

Have a nice holiday of your choosing!

Rob

----

Changelog from 0.13:

2009-12-21 Rob McMullen <ro...@users.sourceforge.net>

* Released peppy-0.14.0 "Solstice"
* fixed code explorer refreshing in minor mode (IDE mode) (bug #761)
* changed AUI to Andrea Gavana's agw.aui rather than wxPython native AUI
* fixed notebook tab ordering problems (bug #669, #807)
* minor mode layouts are now saved allowing restoration of the editing
window layout when restarting the editor (bug #806)
* fixed autosave bug when file was locked by another process (bug #637)
* fixed bug preventing deletion of multiple macros
* added new i18n syncing with launchpad
* fixed SelectAll that failed copying to primary selection (bug #739)

2009-12-02 Rob McMullen <ro...@users.sourceforge.net>

* Released peppy-0.13.3
* Fixed error preventing usage of text styles dialog (bug #802)

2009-11-30 Rob McMullen <ro...@users.sourceforge.net>

* Released peppy-0.13.2
* added ability to modify language keywords in preferences (bug #801)
* fixed breakage in regex replace (bug #799)
* fixed bug when trying to display help for replacebar (bug #800)

2009-11-16 Rob McMullen <ro...@users.sourceforge.net>

* Released peppy-0.13.1
* now includes PDF of user manual
* fixed replace to stop after wrapping around to start (bug #471)
* fixed bug when searching for non-existent CTAG (bug #753)
* fixed bug in help browser when doc doesn't exist (bug #797)
* added m4 major mode
* fixed bug in bash-style completion (bug #796)
* changed version numbering scheme to incremental minor numbers rather
than git-based minor numbers

2009-11-11 Rob McMullen <ro...@users.sourceforge.net>

* Released peppy-0.13.0 "Odyssey and Aquarius"
* added help viewer and included htmlhelp version of user manual
* added experimental webdav support for network file access (bug #230)
* added insert file action (bug #430)
* added copy of user manual to peppy (bug #787)
* added reStructuredText mode
* fixed bug in STC highlight color logic (bug #789)
* changed list mode to use alternating background colors
* added printing support for list mode and dired mode
* fixed bug where files were getting opened twice during load (bug #792)
* fixed GTK keystroke for undo/redo actions (bug #764)
* fixed reindent bug in Makefile mode (bug #784)
* fixed bug in project settings dialog (bug #794)

Don Dwiggins

unread,
Jan 13, 2010, 3:55:58 PM1/13/10
to pepp...@googlegroups.com
I finally got a few moments to look at the upgrade. I can't find the
code explorer window, or any reference to it (I haven't searched the
source code, though 8^). I seem to remember it being "right there" in
earlier releases. What have I missed?


Don

Rob McMullen

unread,
Jan 13, 2010, 5:08:43 PM1/13/10
to pepp...@googlegroups.com

Hmmm, it should be right there. If you start peppy, load up a python
file and select View -> Minor Modes, does it appear in the list of
available minor modes?

Rob

Don Dwiggins

unread,
Jan 13, 2010, 5:55:01 PM1/13/10
to pepp...@googlegroups.com
Ahh, I glanced at Minor Modes, but missed it -- I was thinking of it as more like a right-side springtab.  Maybe it's my Emacs expectations, but I think of a "minor mode" as not a separate window, but like additional or changed functionality in the same buffer.

By the way, with Code Explorer showing, out of curiosity I clicked on Size Reporter, and got the following:

#---- Notes ----#
Please provide additional information about the crash here


#---- System Information ----#
Peppy Version: 0.14.0
Operating System: Windows XP (build 2600, Service Pack 2)
Python Version: 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]
wxPython Version: 2.8.9.1 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=ascii  File=mbcs
wxPython Encoding: latin1
System Architecture: 32bit
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Wed Jan 13 14:41:10 2010 ***
Traceback (most recent call last):
  File "C:\ProgramFiles\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 14576, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "c:\programfiles\python25\lib\site-packages\peppy-0.14.0-py2.5.egg\peppy\mainmenu.py", line 654, in action
    self.mode.wrapper.minors.toggle(index)
  File "c:\programfiles\python25\lib\site-packages\peppy-0.14.0-py2.5.egg\peppy\minor.py", line 325, in toggle
    self.create(self.order[index])
  File "c:\programfiles\python25\lib\site-packages\peppy-0.14.0-py2.5.egg\peppy\minor.py", line 346, in create
    entry.win = entry.minorcls(self.parent, mode=self.mode)
  File "build\bdist.win32\egg\sizereporter_minormode.py", line 38, in __init__
    self._mgr = self.major.wrapper._mgr
AttributeError: 'SizeReporterMinorMode' object has no attribute 'major'

#---- End Traceback Info ----#

Regards,
Don

Rob McMullen

unread,
Jan 13, 2010, 6:27:02 PM1/13/10
to pepp...@googlegroups.com
On Wed, Jan 13, 2010 at 2:55 PM, Don Dwiggins <ddwi...@advpubtech.com> wrote:
> Ahh, I glanced at Minor Modes, but missed it -- I was thinking of it as more
> like a right-side springtab.

The springtabs should still be there. Those are missing? I seem to
remember you may have turned off the code explorer springtabs when you
tested it previously. Maybe that's still the case.

Although you should still see the "Macros" springtab...

> Maybe it's my Emacs expectations, but I think
> of a "minor mode" as not a separate window, but like additional or changed
> functionality in the same buffer.

I initially intended minor modes to mean additional functionality like
that, but as I progressed I realized that plugins can add actions that
provide extra functionality. Minor modes then morphed into the
sub-windows that stay with a major mode, while sidebars are the
sub-windows that stay with the frame.

> By the way, with Code Explorer showing, out of curiosity I clicked on Size
> Reporter, and got the following:
>

> [...]

Woops. Hadn't updated size reported with the API changes recently. Thanks.

Rob

Don Dwiggins

unread,
Jan 13, 2010, 7:58:46 PM1/13/10
to pepp...@googlegroups.com
Rob,
On Wed, Jan 13, 2010 at 2:55 PM, Don Dwiggins <ddwi...@advpubtech.com> wrote:
  
Ahh, I glanced at Minor Modes, but missed it -- I was thinking of it as more
like a right-side springtab.
    
The springtabs should still be there.  Those are missing?  I seem to
remember you may have turned off the code explorer springtabs when you
tested it previously.  Maybe that's still the case.
  
Springtabs are there on both sides; the right one only shows "Macros".  I've just now gone into Global Preferences, and checked the springtab box on CodeExplorerMinorMode, MinorMode, and Sidebar, and unchecked the box on MacroListMinorMode and MacroListSidebar -- no change in appearance, and I can still get the explorer only through the View>Minor Modes menu.

Now I've stopped and restarted peppy, and a bunch more springtab names show up (6 on the left and 4 on the right), including Code Explorer; awriight!  I guess I'll have to uncheck the ones I don't want.  Hmm, is there any way to specify the order they show up in?  For example, I'd like to see Code Explorer be on the top right side.

Anyway, thanks for the timely feedback.  I'll continue experimenting.

Happy post-Solstice,
Don

Rob McMullen

unread,
Jan 13, 2010, 8:13:50 PM1/13/10
to pepp...@googlegroups.com
On Wed, Jan 13, 2010 at 4:58 PM, Don Dwiggins <ddwi...@advpubtech.com> wrote:
> Springtabs are there on both sides; the right one only shows "Macros".  I've
> just now gone into Global Preferences, and checked the springtab box on
> CodeExplorerMinorMode, MinorMode, and Sidebar, and unchecked the box on
> MacroListMinorMode and MacroListSidebar -- no change in appearance, and I
> can still get the explorer only through the View>Minor Modes menu.

The "MinorMode" entry is actually the parent class and doesn't
represent a minor mode in itself, just the default value if you
haven't explicitly set anything for the other minor modes.

> Now I've stopped and restarted peppy, and a bunch more springtab names show
> up (6 on the left and 4 on the right), including Code Explorer; awriight!  I
> guess I'll have to uncheck the ones I don't want.

Yep, that's the only way to change the appearance at the moment.

> Hmm, is there any way to
> specify the order they show up in?  For example, I'd like to see Code
> Explorer be on the top right side.

Not yet. Eventually I want to have some easy way to do that, but I
haven't thought of a good way to do it. I do the menu bar ordering by
associating each action with an integer weight, so I might do
something like that to the springtabs.

> Anyway, thanks for the timely feedback.  I'll continue experimenting.
>
> Happy post-Solstice,
> Don

And to you. Thanks for experimenting; keep me posted on stuff as you find it.

Rob

Reply all
Reply to author
Forward
0 new messages