1
0
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:
dmiller
2022-12-07 20:34:03 +00:00
parent e2e55660c3
commit 24b26317c7
104 changed files with 5381 additions and 4383 deletions

View File

@@ -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)