A newbie question about FileDialog in wxPython

Discussion in 'Python' started by OhKyu Yoon, May 11, 2007.

  1. OhKyu Yoon

    OhKyu Yoon Guest

    Hi!
    I am opening files using the wx.FileDialog in wxPython.
    I want to modify the FileDialog such that some information about a
    highlighted file is displayed before I decide to open the file.
    This is what I tried:

    class ModifiedFileDialog(wx.FileDialog):
    def __init__(self,parent,message,wildcard,style):
    wx.FileDialog(self,parent,message,"","",wildcard,style)
    width,height = self.GetSizeTuple()
    self.SetSizeWH(width,height+100)
    # and so on...

    I get an error when I try to change the size or make other changes.
    Could someone tell me how to make this work or direct me to some reference?
    Thank you.
     
    OhKyu Yoon, May 11, 2007
    #1
    1. Advertisements

  2. OhKyu Yoon

    Guest

    On May 11, 1:24 pm, "OhKyu Yoon" <> wrote:
    > Hi!
    > I am opening files using the wx.FileDialog in wxPython.
    > I want to modify the FileDialog such that some information about a
    > highlighted file is displayed before I decide to open the file.
    > This is what I tried:
    >
    > class ModifiedFileDialog(wx.FileDialog):
    > def __init__(self,parent,message,wildcard,style):
    > wx.FileDialog(self,parent,message,"","",wildcard,style)
    > width,height = self.GetSizeTuple()
    > self.SetSizeWH(width,height+100)
    > # and so on...
    >
    > I get an error when I try to change the size or make other changes.
    > Could someone tell me how to make this work or direct me to some reference?
    > Thank you.


    I don't know the answer either, but the people on the wxPython user's
    group probably will: http://www.wxpython.org/maillist.php

    Please post the question there too.

    Mike
     
    , May 14, 2007
    #2
    1. Advertisements

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. Jay B. Harlow [MVP - Outlook]

    Re: FileDialog window handle

    Jay B. Harlow [MVP - Outlook], Sep 2, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    4,259
    Mick Doherty
    Sep 3, 2003
  2. Hans Stoessel
    Replies:
    2
    Views:
    792
    Mickey Segal
    Jul 30, 2004
  3. Andrew Thompson

    Re: FileDialog Save as Type Problem

    Andrew Thompson, Aug 14, 2004, in forum: Java
    Replies:
    4
    Views:
    1,239
    Andrew Thompson
    Aug 15, 2004
  4. Ike
    Replies:
    2
    Views:
    672
  5. Anand Pillai

    wxPython Filedialog question

    Anand Pillai, Jun 27, 2003, in forum: Python
    Replies:
    0
    Views:
    1,228
    Anand Pillai
    Jun 27, 2003
  6. ulysses
    Replies:
    4
    Views:
    578
    ulysses
    Sep 18, 2003
  7. John Field
    Replies:
    3
    Views:
    629
    Franz Steinhaeusler
    Jan 19, 2005
  8. SMALLp
    Replies:
    5
    Views:
    8,800
    Tim Roberts
    Dec 23, 2007
Loading...