1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Rep Power

    Opening JPG Image from GUI Button

    Hello. I am trying to make a program that involves buttons from GUI and I need help on how to open a JPG image file from a button click. Can someone show me a sample code on what to do and a brief explanation on what to do? Thanks.
  2. #2
  3. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Rep Power
    What does your "buttons from GUI" code look like? Please post code instead of describing the general shape.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Rep Power
    There are a number of GUI tool kits available for Python.
    Tkinter needs PIL to display jpg image files.
    PyQt/PySide and wxPython can handle jpg directly.
    Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25

IMN logo majestic logo threadwatch logo seochat tools logo