How to open and read an unknown extension file
varnikat22 at gmail.com
Fri Apr 9 15:00:51 CEST 2010
Hey thanks a lot to all of you....Now i understood the concept and can use
it the right way....
I have another doubt regarding using radio buttons....
I am using two radio buttons for user to select either of the two options:
When i run the program it shows both radio buttons are active
I don't know how to toggle between the two radio buttons.
Also I want to display the respective image with them Landscape and portrait
at the top of each option....Can anyone help me with this?
On Fri, Apr 9, 2010 at 6:05 AM, Tim Chase <python.list at tim.thechases.com>wrote:
> On 04/08/2010 12:22 PM, varnikat t wrote:
>> it gives me this error
>> TypeError: coercing to Unicode: need string or buffer, list found
>>> Thanks for the help.it detects now using glob.glob("*.*.txt")
>>> Can u suggest how to open and read file this way?
>>> *if glob.glob("*.*.txt"):
> glob() returns a list of matching files, not a string. So you need to
> iterate over those files:
> filenames = glob.glob('*.*.txt')
> if filenames:
> for filename in filenames:
> for filename in glob('*.*.html'):
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list