<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
how can I make a typedef available in python module with SIP?<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I imagine it is simple but I cannot find a way to access test2 from my python module. Renaming it using /PyName=test2/ in test1 would be possible but is not what I want because I couldn't access test1 anymore.
<br>
<div><br>
</div>
<div>The following code is in my c++ header file:</div>
<div><br>
</div>
<div>struct test1 : public other_struct {</div>
<div>...</div>
<div>};</div>
<div><br>
</div>
<div>typedef test1 test2;</div>
<div><br>
</div>
<div>I can access test1, but how to wrap test2 that I can use test1 and test2 in Python I do not know.<br>
</div>
<div><br>
</div>
(I get: AttributeError: module 'test' has noc attribute 'test2')</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
M.T.<br>
</div>
</body>
</html>