コード例 #1
0
 def create_toplevel_widget(self):
     mw = self.add_widget('window', gtk.Window())
     mw.resize(800, 600)
     icon = icons.get(gtk.STOCK_EXECUTE)
     mw.set_icon(icon)
     pack_container(mw, self)
     return mw
コード例 #2
0
 def create_toplevel_widget(self):
     mw = self.add_widget('window', gtk.Window())
     mw.resize(800, 600)
     icon = icons.get(gtk.STOCK_EXECUTE)
     mw.set_icon(icon)
     pack_container(mw, self)
     return mw
コード例 #3
0
 def create_toplevel_widget(self):
     mw = self.add_widget('window', gtk.Window())
     mw.resize(800, 600)
     icon = icons.get(gtk.STOCK_EXECUTE)
     mw.set_icon(icon)
     vbmain = gtk.VBox(spacing=6)
     tbh = self.add_widget('toolbar_holder', gtk.EventBox())
     vbmain.pack_start(tbh, expand=False)
     mw.add(vbmain)
     hp = gtk.HPaned()
     hp.set_position(300)
     vbmain.pack_start(hp)
     vb = gtk.VPaned()
     vb.set_position(150)
     hp.pack1(vb)
     pb = NiceNotebook()
     vb.pack1(pb, resize=True)
     sh = self.add_widget('stack_holder', gtk.EventBox())
     pb.append_page(sh, tab_label=gtk.Label('Stack Viewer'))
     sp = gtk.VPaned()
     sp.set_position(200)
     vb.pack2(sp)
     ns = self.add_widget('ns_holder', gtk.EventBox())
     sp.pack1(ns, resize=True)
     pb2 = NiceNotebook()
     sp.pack2(pb2)
     sh = self.add_widget('breaks_holder', gtk.EventBox())
     pb2.append_page(sh, tab_label=gtk.Label('Breakpoints'))
     tv = self.add_widget('threads_holder', gtk.EventBox())
     pb2.append_page(tv, tab_label=gtk.Label('Threads'))
     vb2 = gtk.VPaned()
     hp.pack2(vb2)
     sv = self.add_widget('source_holder', gtk.EventBox())
     vb2.pack1(sv)
     nb = NiceNotebook()
     vb2.pack2(nb)
     vb2.set_position(300)
     th = self.add_widget('term_holder', gtk.EventBox())
     nb.append_page(th, tab_label=gtk.Label('Command Console'))
     oh = self.add_widget('outterm_holder', gtk.EventBox())
     nb.append_page(oh, tab_label=gtk.Label('Output Console'))
     ehb = gtk.HBox(spacing=6)
     l = gtk.Label()
     l.set_markup('<big><b><tt>&gt;&gt;</tt></b></big>')
     ehb.pack_start(l, expand=False)
     ce = self.add_widget('command', gtk.Entry())
     ehb.pack_start(ce)
     vbmain.pack_start(ehb, expand=False)
     sbh = self.add_widget('statusbar_holder', gtk.EventBox())
     vbmain.pack_start(sbh, expand=False)
     return mw
コード例 #4
0
 def create_toplevel_widget(self):
     mw = self.add_widget('window', gtk.Window())
     mw.resize(800, 600)
     icon = icons.get(gtk.STOCK_EXECUTE)
     mw.set_icon(icon)
     vbmain = gtk.VBox(spacing=6)
     tbh = self.add_widget('toolbar_holder', gtk.EventBox())
     vbmain.pack_start(tbh, expand=False)
     mw.add(vbmain)
     hp = gtk.HPaned()
     hp.set_position(300)
     vbmain.pack_start(hp)
     vb = gtk.VPaned()
     vb.set_position(150)
     hp.pack1(vb)
     pb = NiceNotebook()
     vb.pack1(pb, resize=True)
     sh = self.add_widget('stack_holder', gtk.EventBox())
     pb.append_page(sh, tab_label=gtk.Label('Stack Viewer'))
     sp = gtk.VPaned()
     sp.set_position(200)
     vb.pack2(sp)
     ns = self.add_widget('ns_holder', gtk.EventBox())
     sp.pack1(ns, resize=True)
     pb2 = NiceNotebook()
     sp.pack2(pb2)
     sh = self.add_widget('breaks_holder', gtk.EventBox())
     pb2.append_page(sh, tab_label=gtk.Label('Breakpoints'))
     tv = self.add_widget('threads_holder', gtk.EventBox())
     pb2.append_page(tv, tab_label=gtk.Label('Threads'))
     vb2 = gtk.VPaned()
     hp.pack2(vb2)
     sv = self.add_widget('source_holder', gtk.EventBox())
     vb2.pack1(sv)
     nb = NiceNotebook()
     vb2.pack2(nb)
     vb2.set_position(300)
     th = self.add_widget('term_holder', gtk.EventBox())
     nb.append_page(th, tab_label=gtk.Label('Command Console'))
     oh = self.add_widget('outterm_holder', gtk.EventBox())
     nb.append_page(oh, tab_label=gtk.Label('Output Console'))
     ehb = gtk.HBox(spacing=6)
     l = gtk.Label()
     l.set_markup('<big><b><tt>&gt;&gt;</tt></b></big>')
     ehb.pack_start(l, expand=False)
     ce = self.add_widget('command', gtk.Entry())
     ehb.pack_start(ce)
     vbmain.pack_start(ehb, expand=False)
     sbh = self.add_widget('statusbar_holder', gtk.EventBox())
     vbmain.pack_start(sbh, expand=False)
     return mw
コード例 #5
0
 def __init__(self, parent, filename):
     buf = SVBuffer(filename)
     SourceView.__init__(self, buf)
     self.cb = parent
     self.add_events(gtk.gdk.BUTTON_PRESS_MASK)
     self.connect('button-press-event', self.on_bp_event)
     self.set_auto_indent(True)
     self.set_show_line_numbers(True)
     self.set_show_line_markers(True)
     self.set_tabs_width(4)
     self.set_margin(80)
     self.set_show_margin(True)
     self.set_smart_home_end(True)
     self.set_highlight_current_line(True)
     self.set_insert_spaces_instead_of_tabs(True)
     self.set_marker_pixbuf('bp', icons.get('stock_breakpoint'))
     self.set_font('Monospace 9')
     buf.load_from_file()
コード例 #6
0
 def __init__(self, parent, filename):
     buf = SVBuffer(filename)
     SourceView.__init__(self, buf)
     self.cb = parent
     self.add_events(gtk.gdk.BUTTON_PRESS_MASK)
     self.connect('button-press-event', self.on_bp_event)
     self.set_auto_indent(True)
     self.set_show_line_numbers(True)
     self.set_show_line_markers(True)
     self.set_tabs_width(4)
     self.set_margin(80)
     self.set_show_margin(True)
     self.set_smart_home_end(True)
     self.set_highlight_current_line(True)
     self.set_insert_spaces_instead_of_tabs(True)
     self.set_marker_pixbuf('bp', icons.get('stock_breakpoint'))
     self.set_font('Monospace 9')
     buf.load_from_file()
コード例 #7
0
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.

import gtk

import cgi

from components import PGDSlaveDelegate
from mainwindow import NiceNotebook
from tree import IconTree
from icons import icons

type_icons = {
    'str': icons.get('nsstring', 16),
    'type': icons.get('nsclass', 16),
    'other': icons.get('nsother', 16),
    'int': icons.get('nsint', 16),
    'float': icons.get('nsfloat', 16),
    'list': icons.get('nslist', 16),
    'tuple': icons.get('nstuple', 16),
    'dict': icons.get('nsdict', 16),
    'NoneType': icons.get('nsnone', 16),
    'module': icons.get('nsmodule', 16),
    'bool': icons.get('nsbool', 16),
    'builtin_function_or_method': icons.get('nsfunc', 16),
    'function': icons.get('nsfunc', 16)
}

nochildren = ['NoneType', 'str', 'int', 'float', 'long', 'bool']
コード例 #8
0
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.


import gtk

import cgi

from components import PGDSlaveDelegate
from mainwindow import NiceNotebook
from tree import IconTree
from icons import icons

type_icons = {
    'str': icons.get('nsstring', 16),
    'type': icons.get('nsclass', 16),
    'other': icons.get('nsother', 16),
    'int': icons.get('nsint', 16),
    'float': icons.get('nsfloat', 16),
    'list': icons.get('nslist', 16),
    'tuple': icons.get('nstuple', 16),
    'dict': icons.get('nsdict', 16),
    'NoneType': icons.get('nsnone', 16),
    'module': icons.get('nsmodule', 16),
    'bool': icons.get('nsbool', 16),
    'builtin_function_or_method': icons.get('nsfunc', 16),
    'function': icons.get('nsfunc', 16)
    }

nochildren = ['NoneType', 'str', 'int', 'float', 'long', 'bool']
コード例 #9
0
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.


import gtk

import cgi

from components import PGDSlaveDelegate
from mainwindow import NiceNotebook
from tree import IconTree
from icons import icons

type_icons = {
    "str": icons.get("nsstring", 16),
    "type": icons.get("nsclass", 16),
    "other": icons.get("nsother", 16),
    "int": icons.get("nsint", 16),
    "float": icons.get("nsfloat", 16),
    "list": icons.get("nslist", 16),
    "tuple": icons.get("nstuple", 16),
    "dict": icons.get("nsdict", 16),
    "NoneType": icons.get("nsnone", 16),
    "module": icons.get("nsmodule", 16),
    "bool": icons.get("nsbool", 16),
    "builtin_function_or_method": icons.get("nsfunc", 16),
    "function": icons.get("nsfunc", 16),
}

nochildren = ["NoneType", "str", "int", "float", "long", "bool"]