Skip to content

Commit

Permalink
updated info for github
Browse files Browse the repository at this point in the history
  • Loading branch information
uweschmitt committed Jun 16, 2014
1 parent c02fd46 commit ae12491
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ nested object structure.

Example:

![Image](../blob/master/screenshot.png?raw=true)

```python

from qt_object_viewer import ObjectTreeDialog

from PyQt4.QtGui import QApplication

app = QApplication([])
dlg = ObjectTreeDialog([1, 2, 3, dict(a=3, b=4, c=(1, 2, dict(d=(4, 5))))])
data = dict(name="configuraion",
settings=dict(threshold=0.1,
iterations=3,
inner_loop_params=dict(iterations=5, threshold=.01)
)
)
dlg = ObjectTreeDialog(data)
dlg.show()
app.exec_()
```
Expand All @@ -37,7 +45,13 @@ class MyDialog(QDialog):
self.vertical_layout.addWidget(self.tree_view)

app = QApplication([])
dlg = MyDialog([1, 2, 3, dict(a=3, b=4, c=(1, 2, dict(d=(4, 5))))])
data = dict(name="configuraion",
settings=dict(threshold=0.1,
iterations=3,
inner_loop_params=dict(iterations=5, threshold=.01)
)
)
dlg = MyDialog(data)
dlg.show()
app.exec_()
```
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion try.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

from PyQt4.QtGui import QApplication
app = QApplication([])
dlg = ObjectTreeDialog([1, 2, 3, dict(a=3, b=4, c=(1, 2, dict(d=(4, 5))))])
data = dict(name="configuraion",
settings=dict(threshold=0.1,
iterations=3,
inner_loop_params=dict(iterations=5, threshold=.01)
)
)
dlg = ObjectTreeDialog(data)
dlg.show()
app.exec_()

0 comments on commit ae12491

Please sign in to comment.