code
stringlengths
1
1.72M
language
stringclasses
1 value
############################################################################################### # Author: Ranjith Antony <rptony At Gmail> # URL: http://sunran.com # # This program is an interface to a flickr album. Program fetches the latest 75 pictures from # your flickr account. # #################################...
Python
#!/usr/bin/python -Wignore::DeprecationWarning # # flickrbg # # Set Flickr images as wallpaper for GNOME desktop # import os, sys,re, optparse import random import flickrapi, json import urllib import gconf default_api_key = 'XXXX' def get_photos(api_key, tags): flickr = flickrapi.FlickrAPI(api_key, format='json...
Python
#!/usr/bin/python -Wignore::DeprecationWarning # # flickrbg # # Set Flickr images as wallpaper for GNOME desktop # import os, sys,re, optparse import random import flickrapi, json import urllib import gconf default_api_key = 'XXXX' def get_photos(api_key, tags): flickr = flickrapi.FlickrAPI(api_key, format='json...
Python
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
Python
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
Python
#!/usr/bin/env python # # Copyright (c) 2002, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this ...
Python
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
Python
# Copyright 2011 Google Inc. All Rights Reserved. """Locked file interface that should work on Unix and Windows pythons. This module first tries to use fcntl locking to ensure serialized access to a file, then falls back on a lock file if that is unavialable. Usage: f = LockedFile('filename', 'r+b', 'rb') f....
Python
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
__version__ = "1.0c2"
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
__version__ = "1.0c2"
Python
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Python
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Python
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
Python
from __future__ import generators """ httplib2 A caching http interface that supports ETags and gzip to conserve bandwidth. Requires Python 2.3 or later Changelog: 2007-08-18, Rick: Modified so it's able to use a socks proxy if needed. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright...
Python
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
Python
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
Python
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
Python
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
Python
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
Python
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
Python
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
Python
''' Setup for the binary distribution. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-23 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- ''' from distutils.core import setup; import py2exe; setup( console=["src/shapeprocessor.py"], z...
Python
''' Data model for the ShapeConfig.xml file. Creates itself from the DOM of the parsed xml file. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- 2009-03-26 screwdriver Implemented ...
Python
''' A thread that downloads whatever hides behind an URL to a specified file. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created (Adapted from a sample I got in my opertion-system course - Thanks go to Mr. Georg Esser.). 2009-03-21 screwd...
Python
''' Exceptions raised by DownloadShapes. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- 2009-03-26 screwdirver Cleaned header. ''' MAJOR_VERSION = 1; MINOR_VERSION = 0; MAINT...
Python
''' A tool for downloading & decoding the land usage shape files for an airport project using the Terragear tools. The DOCUMENTATION constant contains a full user documentation. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03...
Python
''' unzip job. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-29 screwdirver Created. ''' import os; from commandlinetool import ExcecuteCommand; from commandlinetool import CommandLine; from commandlinetool import Option; class Unzipper(Excecute...
Python
''' Setup for the binary distribution. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-23 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- ''' from distutils.core import setup; import py2exe; MAJOR_VERSION = 1; MINOR_VERSION = 0; MAINTENANCE = 0; V...
Python
''' Debugging tools @author: screwdriver ''' ''' Version history: ---------------- 2009-03-27 screwdriver Created. 2009-03-27 screwdriver Implemented proper debug switch. ''' import sys MAJOR_VERSION = 1; MINOR_VERSION = 0; MAINTENANCE = 0; VERSION = [MAJOR_VERSION,".", MINOR_VERSION,".", MAINTE...
Python
''' Data model for the ShapeConfig.xml file. Creates itself from the DOM of the parsed xml file. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- 2009-03-26 screwdriver Implemented ...
Python
''' A job that downloads whatever hides behind an URL to a specified file. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created (Adapted from a sample I got in my opertion-system course - Thanks go to Mr. Georg Esser.). 2009-03-21 screwdirv...
Python
''' Exceptions raised in the shapeconfig module. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-26 screwdirver Created. 2009-03-26 screwdirver Released version 1.0.0 --- ''' MAJOR_VERSION = 1; MINOR_VERSION = 0; MAINTENANCE = 0; VERSION = [MAJOR_...
Python
''' Exceptions raised by DownloadShapes. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03-23 screwdirver Released version 1.0.0 --- 2009-03-26 screwdirver Cleaned header. ''' MAJOR_VERSION = 1; MINOR_VERSION = 0; MAINT...
Python
''' A tool for downloading & decoding the land usage shape files for an airport project using the Terragear tools. The DOCUMENTATION constant contains a full user documentation. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-21 screwdirver Created. 2009-03...
Python
''' shape-decode job. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-29 screwdirver Created. ''' import os; from commandlinetool import ExcecuteCommand; from commandlinetool import CommandLine; from commandlinetool import Option; from shapeconfig...
Python
''' A job that executes a command line and logs it's output. Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-27 screwdirver Created. ''' import io; import subprocess; import string; from debug import debug; from threading import Thread; from job ...
Python
''' Base class for Jobs. A thread with extras: * field to indicate if the job was successful * field for the last error encountered * jobs can be stopped Licensed under the GPL. @author: screwdriver ''' ''' Version history: ---------------- 2009-03-27 screwdirver Created. ''' from debug import debu...
Python
from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * import random import traceback import sys from flickcharm import * ITEM_WIDTH = 300 ITEM_HEIGHT = 30 class TextItem(QGraphicsItem): def __init__(self, str): QGraphicsItem.__init__(self) list = str.split() se...
Python
import copy from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.pyqtconfig import * from PyQt4.QtWebKit import * import sys class FlickData: Steady = 0 Pressed = 1 ManualScroll = 2 AutoScroll = 3 Stop = 4 def __init__(self): self.state = FlickData.Steady se...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
from comment import Comment from quote import Quote
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Soft...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
from add_quote import AddQuoteHandler from author import AuthorHandler from base import BasicTemplateHandler from comments import CommentsHandler from discuss import DiscussHandler from edit import EditQuoteHandler from quote import SingleQuoteHandler from quotes import QuotesHandler from search import SearchHandler fr...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
#!/usr/bin/python import sys import unittest import os if __name__ == '__main__': SDK_PATH = os.environ['APPENGINE_SDK'] TEST_PATH = os.path.join(os.path.dirname(__file__), 'tests') sys.path.insert(0, SDK_PATH) import dev_appserver dev_appserver.fix_sys_path() # dev-libs/protobuf contains `g...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
import unittest from google.appengine.ext import testbed class BaseTestCase(unittest.TestCase): def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3_stub() self.testbed.init_memcache_stub() def tearDown(self): self.te...
Python
from nl2br import nl2br
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi import re from jinja2 import evalcontextfilter, Markup, escape _paragraph_re = re.compile(r'\n{2,}') @evalcontextfilter def nl2br(eval_ctx, value): value = value.replace('\r\n', '\n') result = u'\n\n'.join(u'<p>%s</p>' % p.replace('\n', Markup('<br/>\n')) ...
Python
# -*- coding: utf-8 -*- # vim:et:sw=4:sts=4:ai:nosi # Copyright (c) 2012 Flibusta Quotes Team # # This file is part of Flibusta Quotes. # # Flibusta Quotes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eithe...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. import _wxctb import new new_instancemethod = new.instancemethod def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == ...
Python
#!/usr/bin/python from wxctb import * import sys quit=new_intp() intp_assign(quit, 0) t=timer(2000,quit) t.start() while intp_value(quit)==0: print "." sleepms(100) delete_intp(quit) sys.exit(0)
Python
from time import sleep from ctb import * import sys s=wxSerialPort() s.Open("/dev/ttyS0",115200) s.Reset() print "test line state switching (toggle RTS and DTR)..." s.SetLineState(wxSERIAL_LINESTATE_DTR) s.ClrLineState(wxSERIAL_LINESTATE_RTS) lines = wxSERIAL_LINESTATE_DTR | wxSERIAL_LINESTATE_RTS print "%04x" % li...
Python
# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. import _wxctb import new new_instancemethod = new.instancemethod def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == ...
Python
#!/usr/bin/python from wxctb import * import sys quit=new_intp() intp_assign(quit, 0) t=timer(2000,quit) t.start() while intp_value(quit)==0: print "." sleepms(100) delete_intp(quit) sys.exit(0)
Python
from time import sleep from ctb import * import sys g=wxGPIB() g.Open("gpib1",1) #g.Write("*idn?\n") g.Write("calc:form?\n") #sleep(1) print g.ReadUntilEOS("\n",1000,"\"") #print g.Read(100) g.Write("*idn?\n") print g.ReadUntilEOS("\n",1000)
Python
# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. import _wxctb def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "this"): if isinstance(value, class_type): self.__dict__[name] = value.this ...
Python