代码搜索:Pygtk
找到约 117 项符合「Pygtk」的源代码
代码结果 117
www.eeworm.com/read/143979/12825317
py treemodelsort.py
#!/usr/bin/env python
# example treemodelsort.py
import pygtk
pygtk.require('2.0')
import gtk
import random
class TreeModelSortExample:
# close the window and quit
def delete_event(self, w
www.eeworm.com/read/143979/12825322
py drawingarea.py
#!/usr/bin/env python
# example drawingarea.py
import pygtk
pygtk.require('2.0')
import gtk
import operator
import time
import string
class DrawingAreaExample:
def __init__(self):
windo
www.eeworm.com/read/143979/12825329
py itemfactory.py
#!/usr/bin/env python
# example itemfactory.py
import pygtk
pygtk.require('2.0')
import gtk
class ItemFactoryExample:
# Obligatory basic callback
def print_hello(self, w, data):
pri
www.eeworm.com/read/143979/12825346
py tooltip.py
#!/usr/bin/env python
# example tooltip.py
import pygtk
pygtk.require('2.0')
import gtk
# Create an Arrow widget with the specified parameters
# and pack it into a button
def create_arrow_button(ar
www.eeworm.com/read/143979/12825349
py table.py
#!/usr/bin/env python
# example table.py
import pygtk
pygtk.require('2.0')
import gtk
class Table:
# Our callback.
# The data passed to this method is printed to stdout
def callback(sel
www.eeworm.com/read/143979/12825376
py simpleaction.py
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
class SimpleAction:
def __init__(self):
# Create the toplevel window
window = gtk.Window()
window.set_s
www.eeworm.com/read/143979/12825393
py layout.py
#!/usr/bin/env python
# example layout.py
import pygtk
pygtk.require('2.0')
import gtk
import random
class LayoutExample:
def WindowDeleteEvent(self, widget, event):
# return false so t
www.eeworm.com/read/143979/12825402
py colorsel.py
#!/usr/bin/env python
# example colorsel.py
import pygtk
pygtk.require('2.0')
import gtk
class ColorSelectionExample:
# Color changed handler
def color_changed_cb(self, widget):
# G
www.eeworm.com/read/143979/12825409
py arrow.py
#!/usr/bin/env python
# example arrow.py
import pygtk
pygtk.require('2.0')
import gtk
# Create an Arrow widget with the specified parameters
# and pack it into a button
def create_arrow_button(arro
www.eeworm.com/read/143979/12825412
py buttonbox.py
#!/usr/bin/env python
# example buttonbox.py
import pygtk
pygtk.require('2.0')
import gtk
class ButtonBoxExample:
# Create a Button Box with the specified parameters
def create_bbox(self, h