Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3673960
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:47:49+00:00 2026-05-19T02:47:49+00:00

Obviously, with IronPython it’s possible to create a first-class user experience by writing a

  • 0

Obviously, with IronPython it’s possible to create a first-class user experience by writing a different GUI layer for each platform (GTK# on Linux, WinForms on Windows…)

I’m seriously considering doing this, though the little Computer Scientist in my head is screaming. One option to avoid this duplication would be to use the wxWidgets toolkit, which is capable of providing a truly native look and feel on multiple platforms. Since I’m planning to use IronPython, I would imagine that this would involve the use of the wx.NET wrapper.

My question is this: is it possible to use the wx.NET wrapper in IronPython? More importantly: is it EASY to use wx.NET in IronPython? I’ve searched around, and haven’t found much evidence of people using this combination elsewhere. Has anyone used these two technologies together, or heard of a project that does?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:47:49+00:00Added an answer on May 19, 2026 at 2:47 am

    I’ve spent some time playing around with IronPython and the wx.NET library, and I’ve found that it is possible to use wx.NET from IronPython. I’ve created a little sample application that demonstrates the basic idea (tested with Mono 2.8.1 and IronPython 2.6.1 on Linux). The XRC file was created using wxFormBuilder. It seems as though it should be pretty easy to create a wx.NET GUI using IronPython; it looks about the same as the equivalent C# code.

    hello_frame.pyw:

    import clr
    clr.AddReference("wx.NET.dll")
    from wx import *
    
    class MyFrame1(Frame):
        def __init__(self):
            XmlResource.Get().LoadFrame(self, None, "MyFrame1")
            self.EVT_BUTTON( XmlResource.XRCID("m_button1"), EventListener(self.OnMyButtonClicked) )
        def OnMyButtonClicked(self, sender, e):
            MessageDialog.ShowModal( self, "HELLO WORLD!", "", WindowStyles.DIALOG_OK | WindowStyles.ICON_INFORMATION )
    class HelloWorldDemo(App):
        def OnInit(self):
            XmlResource.Get().InitAllHandlers()
            XmlResource.Get().Load( "hello_frame.xrc" )
            f = MyFrame1()
            f.Show()
            return True
    def main():
        app = HelloWorldDemo()
        app.Run()
    if __name__ == '__main__':
        main()
    

    hello_frame.xrc:

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">
        <object class="wxFrame" name="MyFrame1">
            <style>wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL</style>
            <size>500,300</size>
            <title>Demo</title>
            <centered>1</centered>
            <object class="wxBoxSizer">
                <orient>wxVERTICAL</orient>
                <object class="sizeritem">
                    <option>0</option>
                    <flag>wxALL</flag>
                    <border>5</border>
                    <object class="wxStaticText" name="m_staticText1">
                        <label>My Super Program</label>
                        <wrap>-1</wrap>
                    </object>
                </object>
                <object class="sizeritem">
                    <option>0</option>
                    <flag>wxALL</flag>
                    <border>5</border>
                    <object class="wxTextCtrl" name="m_textCtrl1">
                        <value></value>
                        <maxlength>0</maxlength>
                    </object>
                </object>
                <object class="sizeritem">
                    <option>0</option>
                    <flag>wxALL</flag>
                    <border>5</border>
                    <object class="wxButton" name="m_button1">
                        <label>Press Me!</label>
                        <default>0</default>
                    </object>
                </object>
            </object>
        </object>
    </resource>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Obviously I could create a Calendar object with the date and use get(DAY) on
I have a model class (obviously, it extends Doctrine_Record) that acts as a custom
Obviously, that's 64-bit windows. Also, what's the maximum amount of memory a single 64-bit
Obviously there are security reasons to close a wireless network and it's not fun
Obviously I can use BCP but here is the issue. If one of the
Obviously (methinks), creating an index on a BIT column is unnecessary. However, if you
Obviously it gets updated during a write operation, but are there any non-destructive operations
Obviously having whitespace in css, aspx and html pages is a great advantage at
Obviously I can do and DateTime.Now.After - DateTime.Now.Before but there must be something more
Obviously, the actual style of the odd/even rows will be done via a CSS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.