mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 18:59:03 +00:00
Merge #2088: Update Zenmap to Python 3 and PyGObject
Note: Ndiff build will be broken until subsequent changes are made. Deprecation warnings will need to be addressed in future changes. Closes #2088
This commit is contained in:
@@ -57,22 +57,25 @@
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
|
||||
import gtk
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
from radialnet.bestwidgets.labels import BWSectionLabel
|
||||
|
||||
|
||||
class BWExpander(gtk.Expander):
|
||||
class BWExpander(Gtk.Expander):
|
||||
"""
|
||||
"""
|
||||
def __init__(self, label=''):
|
||||
"""
|
||||
"""
|
||||
gtk.Expander.__init__(self)
|
||||
Gtk.Expander.__init__(self)
|
||||
|
||||
self.__label = BWSectionLabel(label)
|
||||
self.set_label_widget(self.__label)
|
||||
|
||||
self.__alignment = gtk.Alignment(0, 0, 1, 1)
|
||||
self.__alignment = Gtk.Alignment.new(0, 0, 1, 1)
|
||||
self.__alignment.set_padding(12, 0, 24, 0)
|
||||
|
||||
self.add(self.__alignment)
|
||||
|
||||
Reference in New Issue
Block a user