mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 03:39:02 +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:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# ***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||
# * *
|
||||
@@ -64,17 +63,20 @@ higwidgets/higwindows.py
|
||||
window related classes
|
||||
"""
|
||||
|
||||
import gtk
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
__all__ = ('HIGWindow', 'HIGMainWindow')
|
||||
|
||||
|
||||
class HIGWindow(gtk.Window):
|
||||
class HIGWindow(Gtk.Window):
|
||||
"""HIGFied Window"""
|
||||
def __init__(self, type=gtk.WINDOW_TOPLEVEL):
|
||||
gtk.Window.__init__(self, type)
|
||||
def __init__(self, type=Gtk.WindowType.TOPLEVEL):
|
||||
Gtk.Window.__init__(self, type=type)
|
||||
self.set_border_width(5)
|
||||
|
||||
# The Application main window should have no borders...
|
||||
# so it should be really a gtk.Window
|
||||
HIGMainWindow = gtk.Window
|
||||
HIGMainWindow = Gtk.Window
|
||||
|
||||
Reference in New Issue
Block a user