I have a python module that I created with swig, and am seeing a basic problem when trying to use it in my writeContent() method of a newly created WebKit context.


Hopefully this isn't off-topic, but I only see this error when using it in my WebKit app. If I do the following:

        #!/usr/local/bin/python
         import example
        s = example.mystruct()

I have no problems, but in my context, I have:

    from WebKit.Page import Page
    import example

class Main(Page):

        def title(self):
            return 'example title'

        def writeContent(self):
            s = example.mystruct()

and receive the following error:

AttributeError: 'module' object has no attribute 'mystruct'

In fact, everything I try to reference in the example module fails with this error. I didn't see anything in the archives related to this, hopefully this is just basic ignorance on my part. Can anyone tell me what am I doing wrong here?

-confused newbie.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to