WX Glade

Posted on 2004-11-23
Last Modified: 2008-02-07
I need to build a simple application that compares two files. I know how to write the comparison logic.

I am in the process of developing a GUI to browse the two files- so basically two buttons and clicking them would enable me to browse the directories and get the appropriate files.

I have installed wx glade ...but I am not sure how much can wxglade it useful to just create the buttons and would I then need to use wxpython to actually do the file browsing part??...or is there a nice easy way using wxglade to do all of this??

Please let me know if you know the answers to the above questions.

Thanks in advance!

Question by:manad
    LVL 17

    Accepted Solution

    AFAIK wxglade andr wxpython specialize in UIs, and the rest of the work must be done in Python.
    LVL 11

    Assisted Solution

    just noticed, in Python 2.4 there is a new "difflib" module - quote below taken from

    "The difflib module now includes an HtmlDiff class that creates an HTML table showing a side by side comparison of two versions of a text."

    I haven't installed 2.4 yet, but on the surface this looks like it could be very useful for your application...
    LVL 1

    Assisted Solution

    wxGlade is very useful for creating the gui, but after having used it for the past week for a school project, there are some things that you should probably know.

    1) It is a new program, and thus a little buggy. Save early, and save often. I have learned this lesson several times over. It especially likes to crash if you accidentally name a widget with the same name as another widget in your program. Note that it does not matter if that widget is in another window, you can only have one widget with one name in your whole program.

    2) In the generated code, there are parts blocked off by a begin wxGlade comment and an end wxGlade comment. Do not touch the code in there, because if you ever re-generate your code, it will overwrite it.

    As for code, you will have to write all the handlers and actual functionality of the code in Python in between the gui code generated by wxGlade. If you need any help with that, let me know. It takes a little while to get used to, but is great once you get the hang of it. Hope this helps.
    LVL 1

    Expert Comment

    I have try Wx and I was bored with it's limitation, now I use Gtk :)
    well I still have done nothing but it's the road I will take
    LVL 2

    Expert Comment

    You can use pyQt and Qt Designer, they are nore powerfull than wx and wxGlade

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
    Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now