Python gtk.WRAP_CHAR Examples
The following are 11
code examples of gtk.WRAP_CHAR().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
gtk
, or try the search function
.
Example #1
Source File: core.py From ntu-dsi-dcn with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) ipython = ipython_view.IPythonView() ipython.modify_font(pango.FontDescription(SHELL_FONT)) ipython.set_wrap_mode(gtk.WRAP_CHAR) ipython.show() scrolled_window.add(ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() __IPYTHON__.user_ns['viz'] = self
Example #2
Source File: core.py From IEEE-802.11ah-ns-3 with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #3
Source File: core.py From ns3-load-balance with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #4
Source File: core.py From 802.11ah-ns3 with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #5
Source File: core.py From ns3-rdma with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) ipython = ipython_view.IPythonView() ipython.modify_font(pango.FontDescription(SHELL_FONT)) ipython.set_wrap_mode(gtk.WRAP_CHAR) ipython.show() scrolled_window.add(ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() __IPYTHON__.user_ns['viz'] = self
Example #6
Source File: core.py From royal-chaos with MIT License | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #7
Source File: core.py From ns-3-dev-git with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #8
Source File: core.py From CRE-NS3 with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) ipython = ipython_view.IPythonView() ipython.modify_font(pango.FontDescription(SHELL_FONT)) ipython.set_wrap_mode(gtk.WRAP_CHAR) ipython.show() scrolled_window.add(ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() __IPYTHON__.user_ns['viz'] = self
Example #9
Source File: core.py From ns3-ecn-sharp with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #10
Source File: core.py From ns3-802.11ad with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})
Example #11
Source File: core.py From Tocino with GNU General Public License v2.0 | 6 votes |
def _start_shell(self, dummy_button): if self.shell_window is not None: self.shell_window.present() return self.shell_window = gtk.Window() self.shell_window.set_size_request(750,550) self.shell_window.set_resizable(True) scrolled_window = gtk.ScrolledWindow() scrolled_window.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.ipython = ipython_view.IPythonView() self.ipython.modify_font(pango.FontDescription(SHELL_FONT)) self.ipython.set_wrap_mode(gtk.WRAP_CHAR) self.ipython.show() scrolled_window.add(self.ipython) scrolled_window.show() self.shell_window.add(scrolled_window) self.shell_window.show() self.shell_window.connect('destroy', self._on_shell_window_destroy) self._update_ipython_selected_node() self.ipython.updateNamespace({'viz': self})