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. Advertising

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

    Re: FileDialog window handle

    Jay B. Harlow [MVP - Outlook], Sep 2, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    3,843
    Mick Doherty
    Sep 3, 2003
  2. Dan Ignatov

    Re: FileDialog window handle

    Dan Ignatov, Sep 4, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,062
    Dan Ignatov
    Sep 4, 2003
  3. Anand Pillai

    wxPython Filedialog question

    Anand Pillai, Jun 27, 2003, in forum: Python
    Replies:
    0
    Views:
    1,048
    Anand Pillai
    Jun 27, 2003
  4. John Field
    Replies:
    3
    Views:
    518
    Franz Steinhaeusler
    Jan 19, 2005
  5. SMALLp
    Replies:
    5
    Views:
    8,300
    Tim Roberts
    Dec 23, 2007
Loading...

Share This Page