[PyObjC-svn] r2121 - trunk/pyobjc/pyobjc-framework-WebKit/Examples/IEWebArchive

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Sun Mar 22 14:36:58 2009
New Revision: 2121

Log:
Remove NibClassBuilder usage

Modified:
   trunk/pyobjc/pyobjc-framework-WebKit/Examples/IEWebArchive/MHTDocument.py

Modified: trunk/pyobjc/pyobjc-framework-WebKit/Examples/IEWebArchive/MHTDocument.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-WebKit/Examples/IEWebArchive/MHTDocument.py	(original)
+++ trunk/pyobjc/pyobjc-framework-WebKit/Examples/IEWebArchive/MHTDocument.py	Sun Mar 22 14:36:58 2009
@@ -1,14 +1,14 @@
-from PyObjCTools import NibClassBuilder
-
+from Cocoa import *
 from loader import MHTLoader # XXX: integrate?
 
-NibClassBuilder.extractClasses("MHTDocument")
-
-class MHTDocument (NibClassBuilder.AutoBaseClass):
+class MHTDocument (NSObject):
+    locationbox = objc.IBOutlet()
+    webview = objc.IBOutlet()
 
     path = None
     statusText = None
 
+    @objc.IBAction
     def navigateHistory_(self, sender):
         if sender.selectedSegment() == 0:
             self.webview.goBack_(sender)

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.