wxpython file dialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Janwillem

    wxpython file dialog

    Is there a way to force the wx.FileDialog to show as default the
    thumbnails vie in stead of list view?
    thanks, janwillem
  • Guilherme Polo

    #2
    Re: wxpython file dialog

    2008/2/9, Janwillem <jwevdijk@xs4al l.nl>:
    Is there a way to force the wx.FileDialog to show as default the
    thumbnails vie in stead of list view?
    thanks, janwillem
    >
    --

    >
    You should be using wx.lib.imagebro wser.ImageDialo g instead of
    wx.FileDialog for that purpose.


    --
    -- Guilherme H. Polo Goncalves

    Comment

    • Janwillem

      #3
      Re: wxpython file dialog

      Guilherme Polo wrote:
      2008/2/9, Janwillem <jwevdijk@xs4al l.nl>:
      >Is there a way to force the wx.FileDialog to show as default the
      > thumbnails vie in stead of list view?
      > thanks, janwillem
      >>
      >--
      > http://mail.python.org/mailman/listinfo/python-list
      >>
      >
      You should be using wx.lib.imagebro wser.ImageDialo g instead of
      wx.FileDialog for that purpose.
      >
      >
      Thanks for the hint, very neat widget. However, it seems not to support
      multiple selection. My application selects from a series of low light
      photographs of the same subject the sharpest one (like BSS on Nikon
      Coolpix). So I need multiple selection and thumbnails. It works with
      wx.FileDialog style=FD_MULTIP LE but I have to select thumbnail view
      every time.
      Janwillem

      Comment

      • Guilherme Polo

        #4
        Re: wxpython file dialog

        2008/2/10, Janwillem <jwevdijk@xs4al l.nl>:
        Guilherme Polo wrote:
        2008/2/9, Janwillem <jwevdijk@xs4al l.nl>:
        >
        Is there a way to force the wx.FileDialog to show as default the
        > thumbnails vie in stead of list view?
        > thanks, janwillem
        >>
        >--
        > http://mail.python.org/mailman/listinfo/python-list
        >>
        >
        >
        You should be using wx.lib.imagebro wser.ImageDialo g instead of
        wx.FileDialog for that purpose.
        >
        >
        >
        Thanks for the hint, very neat widget. However, it seems not to support
        multiple selection. My application selects from a series of low light
        photographs of the same subject the sharpest one (like BSS on Nikon
        Coolpix). So I need multiple selection and thumbnails. It works with
        wx.FileDialog style=FD_MULTIP LE but I have to select thumbnail view
        every time.
        >
        Janwillem
        --

        >
        Unfortunately that is not possible with imagebrowser because it sets
        the listbox for single selection in the code. A patch will fix this.
        Now continuing on FileDialog.. I don't have the option to change to
        thumbnail view here, I guess you are using Windows, so it is not
        cross-platform. imagebrowser is cross-platform because it is all done
        by wxPython.

        --
        -- Guilherme H. Polo Goncalves

        Comment

        • Janwillem

          #5
          Re: wxpython file dialog

          Guilherme Polo wrote:
          2008/2/10, Janwillem <jwevdijk@xs4al l.nl>:
          >Guilherme Polo wrote:
          > 2008/2/9, Janwillem <jwevdijk@xs4al l.nl>:
          >>
          >>>Is there a way to force the wx.FileDialog to show as default the
          > > thumbnails vie in stead of list view?
          > > thanks, janwillem
          > >>
          > >--
          > > http://mail.python.org/mailman/listinfo/python-list
          > >>
          > >
          >>
          >>You should be using wx.lib.imagebro wser.ImageDialo g instead of
          > wx.FileDialog for that purpose.
          > >
          > >
          >>
          >Thanks for the hint, very neat widget. However, it seems not to support
          > multiple selection. My application selects from a series of low light
          > photographs of the same subject the sharpest one (like BSS on Nikon
          > Coolpix). So I need multiple selection and thumbnails. It works with
          > wx.FileDialog style=FD_MULTIP LE but I have to select thumbnail view
          > every time.
          >>
          >Janwillem
          > --
          > http://mail.python.org/mailman/listinfo/python-list
          >>
          >
          Unfortunately that is not possible with imagebrowser because it sets
          the listbox for single selection in the code. A patch will fix this.
          Now continuing on FileDialog.. I don't have the option to change to
          thumbnail view here, I guess you are using Windows, so it is not
          cross-platform. imagebrowser is cross-platform because it is all done
          by wxPython.
          >
          The application is meant to become x-platform; prefarably linux osX and
          win. I use:

          dialog=wx.FileD ialog(None,'Cho ose picture file',defDir,\
          style=wx.OPEN | wx.FD_MULTIPLE, wildcard=wcard)

          and supposed that the wx dialog would work on linux. I did not yet test
          this because the app depends on a lib (dll) which I have not yet made to
          work in Linux (it's pascal and freepascal has a problem I have to dive
          into).

          Comment

          • Mike Driscoll

            #6
            Re: wxpython file dialog

            On Feb 10, 6:41 am, Janwillem <jwevd...@xs4al l.nlwrote:
            Guilherme Polo wrote:
            2008/2/10, Janwillem <jwevd...@xs4al l.nl>:
            Guilherme Polo wrote:
            2008/2/9, Janwillem <jwevd...@xs4al l.nl>:
            >
            >>Is there a way to force the wx.FileDialog to show as default the
            > thumbnails vie in stead of list view?
            > thanks, janwillem
            >>
            >You should be using wx.lib.imagebro wser.ImageDialo g instead of
            wx.FileDialog for that purpose.
            >
            Thanks for the hint, very neat widget. However, it seems not to support
            multiple selection. My application selects from a series of low light
            photographs of the same subject the sharpest one (like BSS on Nikon
            Coolpix). So I need multiple selection and thumbnails. It works with
            wx.FileDialog style=FD_MULTIP LE but I have to select thumbnail view
            every time.
            >>
            Unfortunately that is not possible with imagebrowser because it sets
            the listbox for single selection in the code. A patch will fix this.
            Now continuing on FileDialog.. I don't have the option to change to
            thumbnail view here, I guess you are using Windows, so it is not
            cross-platform. imagebrowser is cross-platform because it is all done
            by wxPython.
            >
            The application is meant to become x-platform; prefarably linux osX and
            win. I use:
            >
            dialog=wx.FileD ialog(None,'Cho ose picture file',defDir,\
            style=wx.OPEN | wx.FD_MULTIPLE, wildcard=wcard)
            >
            and supposed that the wx dialog would work on linux. I did not yet test
            this because the app depends on a lib (dll) which I have not yet made to
            work in Linux (it's pascal and freepascal has a problem I have to dive
            into).
            What is your application supposed to do? In the meantime, I recommend
            looking at this control:



            You can probably get what you need from it. I also highly recommend
            posting to the wxPython user's group where you'll get more wx-specific
            help. See below:



            If you download the venerable wxPython Demo from wxPython.org, you can
            check out other related widgets such as wx.ImageBrowser or the
            wx.BitmapComboB ox.

            HTH

            Mike

            Comment

            • Guilherme Polo

              #7
              Re: wxpython file dialog

              2008/2/11, Mike Driscoll <kyosohma@gmail .com>:
              On Feb 10, 6:41 am, Janwillem <jwevd...@xs4al l.nlwrote:
              Guilherme Polo wrote:
              2008/2/10, Janwillem <jwevd...@xs4al l.nl>:
              >Guilherme Polo wrote:
              > 2008/2/9, Janwillem <jwevd...@xs4al l.nl>:
              >>>Is there a way to force the wx.FileDialog to show as default the
              > > thumbnails vie in stead of list view?
              > > thanks, janwillem
              >>You should be using wx.lib.imagebro wser.ImageDialo g instead of
              > wx.FileDialog for that purpose.
              >Thanks for the hint, very neat widget. However, it seems not to support
              > multiple selection. My application selects from a series of low light
              > photographs of the same subject the sharpest one (like BSS on Nikon
              > Coolpix). So I need multiple selection and thumbnails. It works with
              > wx.FileDialog style=FD_MULTIP LE but I have to select thumbnail view
              > every time.
              Unfortunately that is not possible with imagebrowser because it sets
              the listbox for single selection in the code. A patch will fix this.
              Now continuing on FileDialog.. I don't have the option to change to
              thumbnail view here, I guess you are using Windows, so it is not
              cross-platform. imagebrowser is cross-platform because it is all done
              by wxPython.
              The application is meant to become x-platform; prefarably linux osX and
              win. I use:

              dialog=wx.FileD ialog(None,'Cho ose picture file',defDir,\
              style=wx.OPEN | wx.FD_MULTIPLE, wildcard=wcard)

              and supposed that the wx dialog would work on linux. I did not yet test
              this because the app depends on a lib (dll) which I have not yet made to
              work in Linux (it's pascal and freepascal has a problem I have to dive
              into).
              >
              What is your application supposed to do? In the meantime, I recommend
              looking at this control:
              >

              >
              You can probably get what you need from it. I also highly recommend
              posting to the wxPython user's group where you'll get more wx-specific
              help. See below:
              >

              >
              If you download the venerable wxPython Demo from wxPython.org, you can
              check out other related widgets such as wx.ImageBrowser or the
              wx.BitmapComboB ox.
              wx.ImageBrowser and wx.BitmapComboB ox are non-existent widgets. There
              are demos named like that but the actual widgets are
              wx.lib.imagebro wser and wx.combo.Bitmap ComboBox

              --
              -- Guilherme H. Polo Goncalves

              Comment

              • Mike Driscoll

                #8
                Re: wxpython file dialog

                On Feb 11, 2008 12:14 PM, Guilherme Polo <ggpolo@gmail.c omwrote:
                2008/2/11, Mike Driscoll <kyosohma@gmail .com>:
                On Feb 10, 6:41 am, Janwillem <jwevd...@xs4al l.nlwrote:
                Guilherme Polo wrote:
                2008/2/10, Janwillem <jwevd...@xs4al l.nl>:
                Guilherme Polo wrote:
                2008/2/9, Janwillem <jwevd...@xs4al l.nl>:
                >
                >>Is there a way to force the wx.FileDialog to show as default the
                > thumbnails vie in stead of list view?
                > thanks, janwillem
                >
                <snip>

                What is your application supposed to do? In the meantime, I recommend
                looking at this control:



                You can probably get what you need from it. I also highly recommend
                posting to the wxPython user's group where you'll get more wx-specific
                help. See below:



                If you download the venerable wxPython Demo from wxPython.org, you can
                check out other related widgets such as wx.ImageBrowser or the
                wx.BitmapComboB ox.
                >
                wx.ImageBrowser and wx.BitmapComboB ox are non-existent widgets. There
                are demos named like that but the actual widgets are
                wx.lib.imagebro wser and wx.combo.Bitmap ComboBox

                Whoops! My bad! Still, I think the OP might find them useful for
                creating his own custom image dialog.

                Cheers,

                Mike

                Comment

                • Guilherme Polo

                  #9
                  Re: wxpython file dialog

                  2008/2/11, Mike Driscoll <kyosohma@gmail .com>:
                  On Feb 11, 2008 12:14 PM, Guilherme Polo <ggpolo@gmail.c omwrote:
                  2008/2/11, Mike Driscoll <kyosohma@gmail .com>:
                  On Feb 10, 6:41 am, Janwillem <jwevd...@xs4al l.nlwrote:
                  Guilherme Polo wrote:
                  2008/2/10, Janwillem <jwevd...@xs4al l.nl>:
                  >Guilherme Polo wrote:
                  > 2008/2/9, Janwillem <jwevd...@xs4al l.nl>:

                  >>>Is there a way to force the wx.FileDialog to show as default the
                  > > thumbnails vie in stead of list view?
                  > > thanks, janwillem
                  >
                  <snip>
                  >
                  >
                  What is your application supposed to do? In the meantime, I recommend
                  looking at this control:
                  >

                  >
                  You can probably get what you need from it. I also highly recommend
                  posting to the wxPython user's group where you'll get more wx-specific
                  help. See below:
                  >

                  >
                  If you download the venerable wxPython Demo from wxPython.org, you can
                  check out other related widgets such as wx.ImageBrowser or the
                  wx.BitmapComboB ox.
                  wx.ImageBrowser and wx.BitmapComboB ox are non-existent widgets. There
                  are demos named like that but the actual widgets are
                  wx.lib.imagebro wser and wx.combo.Bitmap ComboBox
                  >
                  >
                  Whoops! My bad! Still, I think the OP might find them useful for
                  creating his own custom image dialog.
                  >
                  Cheers,
                  >
                  Mike
                  >
                  It is ok ;) I mentioned imagebrowser on my first email, but he needs
                  to selection several images at once and imagebrowser lacks this right
                  now. An easy patch fix this, the widget would take another argument to
                  specify the style of the listbox it uses and it needs to store all the
                  selected images using listbox.GetSele ctions() if the user opts for
                  multiple selection.
                  I suggest posting this at wx maillist as feature request so you don't
                  need to wait for me to submit a patch.

                  --
                  -- Guilherme H. Polo Goncalves

                  Comment

                  Working...