Re: [BangPypers] WxPython : List box
Hi, I could read all the elements by using self.listbox.GetItems() Only vertical scrollbar is coming by default Thanks, Rama Rao On 11/12/09, Kenneth Gonsalves law...@au-kbc.org wrote: On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: 1. Reading all elements from from listbox. Currently I am able to read only selected files. what do you mean by 'read all the elements' 2. Displaying scrollbar. I dont know how to display scrollbar. afaik both vertical and horizontal scrollbars appear by default if the matter is bigger than the size of the list box -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
Here is the solution. On setting style as wx.HSCROLL. horizontal scrollbar appears. Thanks, On 11/12/09, Rama Rao Polneni ram...@gmail.com wrote: Hi, I could read all the elements by using self.listbox.GetItems() Only vertical scrollbar is coming by default Thanks, Rama Rao On 11/12/09, Kenneth Gonsalves law...@au-kbc.org wrote: On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: 1. Reading all elements from from listbox. Currently I am able to read only selected files. what do you mean by 'read all the elements' 2. Displaying scrollbar. I dont know how to display scrollbar. afaik both vertical and horizontal scrollbars appear by default if the matter is bigger than the size of the list box -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
Rama, Best thing to do is download Boa Constructor. It is an IDE that will allow you to get through that task in under 30 minutes. David On Thu, 12 Nov 2009 09:56:51 +0530, Rama Rao Polneni ram...@gmail.com wrote: Hi, Can you please help me in writing python code for the follwing requirement. I have a list box. In which I need to browse multiple files from multiple locations and need to show them in the list box. Then I will be able to read all the file names(all means-No selection/deselction mechanism) in the list box and to print them. Thanks in advance, Rama Rao ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
Hi David, I am using BOA. Bu the problem here is I am able to read only selected files. But I want to read all the files. and I dont know how to insert horizantal scrollbar in listbox.as my file name contains full path. It will be very long. Thanks, Rama On 11/12/09, David Lyon david.l...@preisshare.net wrote: Rama, Best thing to do is download Boa Constructor. It is an IDE that will allow you to get through that task in under 30 minutes. David On Thu, 12 Nov 2009 09:56:51 +0530, Rama Rao Polneni ram...@gmail.com wrote: Hi, Can you please help me in writing python code for the follwing requirement. I have a list box. In which I need to browse multiple files from multiple locations and need to show them in the list box. Then I will be able to read all the file names(all means-No selection/deselction mechanism) in the list box and to print them. Thanks in advance, Rama Rao ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
On Thu, 12 Nov 2009 10:05:52 +0530, Rama Rao Polneni ram...@gmail.com wrote: Hi David, I am using BOA. Bu the problem here is I am able to read only selected files. But I want to read all the files. and I dont know how to insert horizantal scrollbar in listbox.as my file name contains full path. It will be very long. Thanks, Rama Oh, what you can do is trim out the path by using os.path.basename() That will let you extract only the name of the file and give you a lot more space. Daivd ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
David, This problem is not at all related to the parsing of the filenames. Here I strucked in GUI part only. 1. Reading all elements from from listbox. Currently I am able to read only selected files. 2. Displaying scrollbar. I dont know how to display scrollbar. Thanks, Rama Rao On 11/12/09, David Lyon david.l...@preisshare.net wrote: On Thu, 12 Nov 2009 10:05:52 +0530, Rama Rao Polneni ram...@gmail.com wrote: Hi David, I am using BOA. Bu the problem here is I am able to read only selected files. But I want to read all the files. and I dont know how to insert horizantal scrollbar in listbox.as my file name contains full path. It will be very long. Thanks, Rama Oh, what you can do is trim out the path by using os.path.basename() That will let you extract only the name of the file and give you a lot more space. Daivd ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
On Thu, 12 Nov 2009 10:12:43 +0530, Rama Rao Polneni ram...@gmail.com wrote: David, This problem is not at all related to the parsing of the filenames. Here I strucked in GUI part only. 1. Reading all elements from from listbox. Currently I am able to read only selected files. Best to look at the docs. Can't remember off the top of my head. 2. Displaying scrollbar. I dont know how to display scrollbar. There is a hscrollbar property that you set to true. It's in the object inspector on the second page. David ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] WxPython : List box
On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: 1. Reading all elements from from listbox. Currently I am able to read only selected files. what do you mean by 'read all the elements' 2. Displaying scrollbar. I dont know how to display scrollbar. afaik both vertical and horizontal scrollbars appear by default if the matter is bigger than the size of the list box -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers