On 4/15/2010 1:31 PM, George Seese wrote:
When entering something like:
label = QLabel
I don't see any intelligent clues as to what arguments are available
to be defined.
Is this kind of help only available in IDEs that are purchased?
You might want to look at IDLE, available from python.org.
Otherwise, what is the easiest way to find that information (initial
values and methods)?
For classes in the standard library, the online documentation is
excellent. For third-party modules, you can usually get what you need
by using dir(object) and help(object) in the interpreter. For example:
MAHLER:D:\home\bkline\trunk>python
ActivePython 2.6.0.0 (ActiveState Software Inc.) based on
Python 2.6 (r26:66714, Nov 11 2008, 10:21:19) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ExcelReader
>>> dir(ExcelReader)
['Cell', 'DEBUG', 'ExcelTime', 'ExcelTimeFromNumber', 'Font', 'Format',
'Hyperlink', 'OleStorage', 'Record', 'Row', 'UnicodeString', 'Workbook',
'Worksheet', '__all__', '__builtins__', '__doc__', '__file__',
'__name__', '__package__', 'struct', 'sys']
>>> help(ExcelReader.Font)
Help on class Font in module ExcelReader:
class Font
| Character display settings for Cell values.
|
| Attributes:
|
| bold - redundant Boolean value (see also weight)
| italic - True or False
| underlined - True or False; see also underlineType
| strikeout - True or False
| superscript - True or False
| subscript - True or False
| underlineType - 'none', 'single', 'double', 'single accounting',
| 'double accounting', or 'unknown'
| family - 'none', 'roman', 'swiss', 'modern', 'script',
| 'decorative', or 'unknown'
| name - Unicode string for font's name
|
| Methods defined here:
|
| __init__(self, buf)
| Unpacks font information from binary encoding.
>>>
--
Bob Kline
http://www.rksystems.com
mailto:bkl...@rksystems.com
_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython