Reputation: 99
Let' say I have written a wxPython application
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, -1, "Just one child", size=(250,150))
button = wx.Button(frame, -1, "This is resized")
frame.Show()
app.MainLoop()
How can I reuse or converting this code easily into a c++ program which I can compile with g++. Is this even possible?
Upvotes: 0
Views: 215
Reputation: 33071
No, it is not possible. What you want is the wxWidgets library. The wxPython project is for use with Python only.
I would recommend reading the "Hello World" tutorial on the wxWidgets website:
There are additional tutorials here:
Upvotes: 1