代码搜索结果

找到约 10,000 项符合 Python 的代码

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

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

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

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

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

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

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

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

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

test-database

#!/usr/bin/python import time import dbus bus = dbus.SystemBus() xml = ' \ \ \ \ \