[PyKDE] C++ conversion to python, using sip

Park joon cheol exman at mizi.com
Sat Jun 28 04:30:01 BST 2003


Error messages: A function with the same Python signature has already 
been defined

C++ Code:

Class foo
{
...

    bool            write (const QString  &section,
                           const QString  &entry,
                           int             value);

    int             read  (const QString  &section,
                           const QString  &entry,
                           int             value);

    bool            write (const QString  &section,
                           const QString  &entry,
                           double          value);

    double          read  (const QString  &section,
                           const QString  &entry,
                           double          value);


...
}




sip code:

class foo
{
...

    bool            write (const QString&,
                           const QString&,
                           int);

    int             read  (const QString&,
                           const QString&,
                           int             );

    bool            write (const QString&,
                           const QString&,
                           double          );

    double          read  (const QString&,
                           const QString&,
                           double          );


...
}


Is it possible to conversion C++'s overloaded method in SIP?




More information about the PyQt mailing list