代码搜索:Pygtk
找到约 117 项符合「Pygtk」的源代码
代码结果 117
www.eeworm.com/read/143979/12825430
py entrycompletion.py
#!/usr/bin/env python
import time
import pygtk
pygtk.require('2.0')
import gtk
class EntryCompletionExample:
def __init__(self):
window = gtk.Window()
window.connect('destroy', l
www.eeworm.com/read/143979/12825459
py cellrenderer.py
#!/usr/bin/env python
# vim: ts=4:sw=4:tw=78:nowrap
""" Demonstration using editable and activatable CellRenderers """
import pygtk
pygtk.require("2.0")
import gtk, gobject
tasks = {
"Buy grocer
www.eeworm.com/read/143979/12825477
py radiobuttons.py
#!/usr/bin/env python
# example radiobuttons.py
import pygtk
pygtk.require('2.0')
import gtk
class RadioButtons:
def callback(self, widget, data=None):
print "%s was toggled %s" % (data
www.eeworm.com/read/143979/12825484
py filesel.py
#!/usr/bin/env python
# example filesel.py
import pygtk
pygtk.require('2.0')
import gtk
class FileSelectionExample:
# Get the selected filename and print it to the console
def file_ok_sel(s
www.eeworm.com/read/337282/12379569
py widget.py
#!/usr/bin/python
import sys
import gobject
import pango
import gtk
from gtk import gdk
if gtk.pygtk_version < (2, 8):
print "PyGtk 2.8 or later required for this example"
raise SystemExit
www.eeworm.com/read/337282/12379574
py uimanager.py
#
# Small example of the new GtkUIManager
#
# Johan Dahlin , 2004
#
import pygtk
pygtk.require('2.0')
import gtk
ui_string = """
www.eeworm.com/read/325535/3482951
py __init__.py
"""pyGTK widgets for VTK."""
__all__ = ['GtkVTKRenderWindow', 'GtkVTKRenderWindowInteractor',
'GtkGLExtVTKRenderWindow', 'GtkGLExtVTKRenderWindowInteractor']
www.eeworm.com/read/143979/12825348
py treemodelfilter.py
#!/usr/bin/env python
# example treemodelfilter.py
import pygtk
pygtk.require('2.0')
import gtk
bugdata="""120595 NEW Custom GtkTreeModelFilter wrappers need
121339 RESO dsextras.py installation di
www.eeworm.com/read/143979/12825351
py aspectframe.py
#!/usr/bin/env python
# example aspectframe.py
import pygtk
pygtk.require('2.0')
import gtk
class AspectFrameExample:
def __init__(self):
window = gtk.Window(gtk.WINDOW_TOPLEVEL);
www.eeworm.com/read/143979/12825363
py textview-basic.py
#!/usr/bin/env python
# example textview-basic.py
import pygtk
pygtk.require('2.0')
import gtk
class TextViewExample:
def toggle_editable(self, checkbutton, textview):
textview.set_edit