ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] code folding added to CodeEditor component
by Kevin Altis other posts by this author
Dec 17 2002 9:06PM messages near this date
[Pythoncard-users] code folding added to CodeEditor component | [Pythoncard-users] added openFileDialog and saveFileDialog wrappers
I've checked in changes to the codeEditor tool and CodeEditor component to
allow toggling of line number and code folding margins. By default, code
folding is off. I haven't made these attributes of the component that can go
in resource files or made them saveable config options in the codeEditor
yet. I want to play with this a bit before taking the next step.

ka

>  -----Original Message-----
>  From: Kevin Altis
>  Sent: Monday, December 16, 2002 9:49 PM
>  To: pythoncard-Users
>  Subject: [Pythoncard-users] code folding added to CodeEditor component
> 
> 
>  I have checked in changes to the
>  PythonCardPrototype\components\codeeditor.py module, aka the CodeEditor
>  component. The changes add code folding to the component which in
>  turn shows
>  up in the codeEditor tool, samples launcher, and webserver sample and any
>  other PythonCard app that uses the CodeEditor component. I
>  essentially did a
>  copy and paste of the code from the wxPython demo file:
> 
>  wxPython\demo\wxStyledTextCtrl_2.py
> 
>  and I marked the additions in codeditor.py with:
> 
>          # KEA 2002-12-16
>          # code folding code taken from
>          # wxStyledTextCtrl_2.py
> 
>  There doesn't seem to be any problems, but if you are updating
>  from cvs, you
>  may want to make a backup of the components\codeeditor.py module before
>  doing an update, so you can fall back to the previous version if needed.
>  Also, I think some of the constants from the wxPython.stc module
>  may only be
>  available in wxPython 2.3.3.1 or later; remember release 0.7 will require
>  wxPython 2.3.3.1 as a minimum.
> 
>  Of course, I will appreciate testing and feedback from everyone.
> 
>  The component really needs a way to toggle whether code folding and line
>  numbers are on or off, preferably via an attribute which can also
>  go in the
>  .rsrc.py files and a way to clean up the margins as appropriate.
>  I think by
>  default we probably don't want code folding on, but it is an option I want
>  to make available in the codeEditor View menu and a preference that can be
>  saved in the config. I'm sure Neil and/or Robin will be able to
>  help me get
>  these options integrated this week (fingers crossed); it is
>  probably just a
>  matter of a few method calls to wxSTC.
> 
>  ka



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Kevin Altis
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved