mirror of
https://github.com/nmap/nmap.git
synced 2025-12-13 19:29:04 +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************************
|
||||
# * *
|
||||
@@ -66,11 +65,14 @@ higwidgets/higtextviewers.py
|
||||
|
||||
__all__ = ['HIGTextView']
|
||||
|
||||
import gtk
|
||||
import gi
|
||||
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk
|
||||
|
||||
|
||||
class HIGTextView(gtk.TextView):
|
||||
class HIGTextView(Gtk.TextView):
|
||||
def __init__(self, text=''):
|
||||
gtk.TextView.__init__(self)
|
||||
self.set_wrap_mode(gtk.WRAP_WORD)
|
||||
Gtk.TextView.__init__(self)
|
||||
self.set_wrap_mode(Gtk.WrapMode.WORD)
|
||||
self.get_buffer().set_text(text)
|
||||
|
||||
Reference in New Issue
Block a user