I
I
Ivan Tishchenko2015-03-15 11:26:59
Python
Ivan Tishchenko, 2015-03-15 11:26:59

How to create a Gtk.Range element using pygtk?

How to create and place this element correctly?

...
        self.RangeStep = Gtk.Range()
        self.RangeStep.set_range(1.0, 255.0)
        self.QueryBox.pack_start(self.RangeStep, False, False, 0)
        ...

What I get:
Traceback (most recent call last):
  File "/home/Tihon/Projects/PycharmProjects/Project/hash.py", line 8, in <module>
    Main = _gui.MainWindow()
  File "/home/Tihon/Projects/PycharmProjects/Project/_gui.py", line 75, in __init__
    self.RangeStep = Gtk.Range()
TypeError: cannot create instance of abstract (non-instantiable) type `GtkRange'

This and this manual unfortunately without examples. How to declare it? Please help with examples.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question