Why am I getting no attribute __getitem__ error for dictionary:
Traceback (most recent call last):
File "./thumbnail.py", line 39, in <module>
main()
File "./thumbnail.py", line 19, in main
options['input_pattern']
AttributeError: Values instance has no attribute '__getitem__'
Here's the code:
#!/usr/bin/env python
impor...
Here's the code:
class BinaryTree:
def __init__(self,rootObj):
self.key = rootObj
self.left = None
self.right = None
root = [self.key, self.left, self.right]
def getRootVal(root):
return root[0]
def setRootVal(newVal):
root[0] = newVal
def getLeftChild(root):
ret...
I have created a custom Base Adapter class, to populate a list view with image and text.
The code of class is as below :
public class ViewAdapter extends BaseAdapter {
private Activity activity;
private String[] data;
private static LayoutInflater inflater=null;
public ImageLoader imageLoader;
private ArrayList<String> items;
public ...