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
[Pythoncard-users] cvs updates for codeEditor and resourceEditor
by Kevin Altis other posts by this author
May 21 2002 6:05AM messages near this date
[Pythoncard-users] locking all windows to same level in the Z order | [Pythoncard-users] Conversions sample expanded
If you're updating from cvs, you might want to make backups of your
codeEditor and resourceEditor directories in case I've broken something
while making the most recent additions.

The template system was changed so that when you create a New
Background/Dialog you get to choose from a list of whatever files are in the
resourceEditor/templates directory. The 'title' of the Background in each
.rsrc.py file is used as the item label in the list. You can add whatever
resource files you want to the templates directory.

I've added a 'strings' attribute to Background and CustomDialog. In addition
the classes now have a reference to their resource, so the strings can be
referenced from within your code as

self.resource.strings

The codeEditor sample has been modified to make use of these strings, which
should simplify localization. An example would be the name used for new
untitled documents which used to be hard coded as

  filename = 'Untitled'

but is now defined as:

  filename = self.resource.strings.untitled

The resourceEditor has been updated with a String editor dialog. The strings
are actually a dictionary of key/value pairs, which you can see if you view
a resource file after defining one or more strings.

I also made some fixes in model.py and the codeEditor and resourceEditor
samples. I don't have time to do extensive testing, which is why you should
keep a backup of the working files you already have. If there are problems,
report them and I'll fix them as soon as I can.

ka


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

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