using Tix.FileSelectBox in python

Discussion in 'Python' started by devnew@gmail.com, Jan 2, 2008.

  1. Guest

    hi
    i was using Tix.FileSelectBox to select imagefiles from a
    directory..when i click on image and click my app's okbutton i can
    get the selected image name by

    self.selimgname=self.myfileselectbox.selection.cget("value")

    after this if i just select a folder and not an image and click
    ok then again the myfileselectbox.selection.cget("value") gives
    the previously selected image name.

    i would like to give an error msg asking the user if he doen't select
    an image..how can i do this?

    devnew
     
    , Jan 2, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harlin Seritt

    Using Tix and Tkinter

    Harlin Seritt, Dec 31, 2004, in forum: Python
    Replies:
    1
    Views:
    519
    harold fellermann
    Jan 13, 2005
  2. Replies:
    0
    Views:
    280
  3. Replies:
    0
    Views:
    334
  4. wilson
    Replies:
    0
    Views:
    306
    wilson
    Jul 5, 2008
  5. Replies:
    0
    Views:
    297
Loading...

Share This Page