index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
32,192
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/gui.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,193
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/background.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,194
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_centripetal/main.py
""" CENTRIPETAL! Sorry for the messy code! I only found out about the contest ~2 days before it was over, so I didn't have much time to write nice code. :( Copyright 2012 Dillon Cower, d <last name> @ gmail . com """ import kivy from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import N...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,195
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/runtests.py
import glob import os import unittest import sys def build_test_suite(): suite = unittest.TestSuite() for test_case in glob.glob('tests/test_*.py'): modname = os.path.splitext(test_case)[0] modname = modname.replace('/', '.') module = __import__(modname, {}, {}, ['1']) suite.ad...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,196
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/TouchTouch/MyGame.py
import Utility as Util from Utility import * from Animal import * from Particle import * from Shaders import * class Resource: def __init__(self, key, img, snd): self.key = key self.img = img self.snd = snd def getName(self): return self.key def getImg(self): return self.img def getTex(self): r...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,197
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/two_dialogs.py
from setup import * from pyglet_gui.gui import Label from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button from pyglet_gui.constants import ANCHOR_TOP_LEFT from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [25...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,198
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/00_GameFrame/Sprite/__init__.py
from Sprite import *
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,199
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyopengl_example_01.py
from OpenGL.GL import * from OpenGL.GL.shaders import * from sdl2 import * import numpy import math import mathutils import ctypes import sys vs = """ #version 330 core layout(location=0) in vec3 position; layout(location=1) in vec3 normal; layout(location=2) in vec2 uv; layout(location=3) in vec3 color; layout(std1...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,200
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox-master/core/widgets/experimentWindow.py
# -*- coding: utf-8 -*- import os from kivy.metrics import Metrics from kivy.properties import NumericProperty, StringProperty, BooleanProperty from kivy.uix.widget import Widget class ExperimentWindow(Widget): time = NumericProperty() experiment_path = StringProperty() live = BooleanProperty(False) c...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,201
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/text_input.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.text_input import TextInput from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [255, 255, 255, 255], "gui_color": [255, 0, 0, 255], ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,202
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Python/main.py
import Utility as Util from Utility import * from PyInterpreter import PyInterpreter if __name__ == '__main__': gMyRoot.show_debug(True) gMyRoot.run( PyInterpreter.instance() )
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,203
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/KivyRpg/Character.py
import Utility as Util from Utility import * class Race: Human = 0 Orc = 1 Devil = 2 Ogre = 3 class CharacterInfo(Singleton): def __init__(self, name, male, age, race): self.name = name self.male = male self.age = age self.race = race class Player(Singleton): def __init__(self): ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,204
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox/core/widgets/controls/sliderControl.py
# -*- coding: utf-8 -*- from kivy.properties import StringProperty, NumericProperty, ObjectProperty from core.widgets.controls.baseControl import BaseControl __author__ = 'gipzo' class SliderControl(BaseControl): label = StringProperty('') description = StringProperty('') value = NumericProperty(50) ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,205
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/00_GameFrame/MyGame.py
import Utility as Util from Utility import * from Sprite import Sprite, gSpriteMgr from Particle import * from ResourceMgr import * #---------------------# # Global Instance #---------------------# def setGlobalInstance(): global gMyGame, gGameScreen gGameScreen = MyGame_Screen.instance() gMyGame = MyGame_Mgr.i...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,206
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/00_GameFrame/ResourceMgr/__init__.py
from ResourceMgr import *
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,207
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/setup.py
import unittest import os import sys import pyglet import pyglet_gui.theme class TestPygletGUI(unittest.TestCase): """ Default configuration of testing unit. """ def setUp(self): # define a theme self.theme = pyglet_gui.theme.ThemeFromPath(os.path.join(sys.path[0], '../theme')) ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,208
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/DbdbDeep/Resource.py
import os szImagePath = 'Image' szMenu_BG = os.path.join(szImagePath, 'Menu_BG.jpg') szEnemy = os.path.join(szImagePath, 'asteroid2-deco.png')
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,209
ubuntunux/WorkSpace
refs/heads/master
/Codes/PrimaryArithmetic/PrimaryArithmetic.py
while True: A, B = input("Input 2 numsbers or 0 0 for quit : ").split() if A != "0" or B != "0": print("%d carry operation." % len([i for i in range(1, min(len(A), len(B))+1) if (int(A[-i:])+int(B[-i:])) >= 10**i])) else: break
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,210
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/containers.py
from functools import reduce from pyglet_gui.constants import HALIGN_CENTER, HALIGN_LEFT, HALIGN_RIGHT, \ VALIGN_TOP, VALIGN_CENTER, ANCHOR_CENTER, GetRelativePoint from pyglet_gui.core import Viewer, Rectangle class Spacer(Viewer): def __init__(self, min_width=0, min_height=0): Viewer.__init__(self...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,211
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/option_selectors.py
import pyglet from pyglet_gui.controllers import Option, Selector from pyglet_gui.gui import Frame from pyglet_gui.containers import VerticalContainer from pyglet_gui.constants import ANCHOR_TOP_LEFT, ANCHOR_BOTTOM_LEFT, HALIGN_CENTER, VALIGN_TOP from pyglet_gui.manager import Manager from pyglet_gui.scrollable import...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,212
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox/core/widgets/controls/choiceControl.py
# -*- coding: utf-8 -*- from kivy.properties import StringProperty, ListProperty, ObjectProperty from core.widgets.controls.baseControl import BaseControl __author__ = 'gipzo' class ChoiceControl(BaseControl): label = StringProperty('') description = StringProperty('') choices = ListProperty(['test', 'te...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,213
ubuntunux/WorkSpace
refs/heads/master
/Codes/InsertComma/InsertComma.py
def split3(testCase): return (split3(testCase[:-3]) + "," + testCase[-3:]) if len(testCase) > 3 else testCase testCase = input("Input test case : ") sign = "" if "-" == testCase[0]: sign = testCase[0] testCase = testCase[1:] testCase, rest = testCase.split(".") print(sign + ".".join([split3(testCase),rest]...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,214
ubuntunux/WorkSpace
refs/heads/master
/Codes/LCDDisplay/LCDDisplay.py
material = (' ', ' - ', '| ', '| |', ' |') numToDigit = {} numToDigit[0] = 1, 3, 0, 3, 1 numToDigit[1] = 0, 4, 0, 4, 0 numToDigit[2] = 1, 4, 1, 2, 1 numToDigit[3] = 1, 4, 1, 4, 1 numToDigit[4] = 0, 4, 1, 4, 0 numToDigit[5] = 1, 2, 1, 4, 1 numToDigit[6] = 1, 2, 1, 3, 1 numToDigit[7] = 1, 4, 0, 4, 0 numToDigit[8] = 1...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,215
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/document.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.document import Document from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [255, 255, 255, 255], "gui_color": [64, 64, 64, 255], ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,216
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/JumpJump/ResourceMgr/ActorProperty.py
from collections import OrderedDict import os from copy import deepcopy from functools import partial from toast import toast from Utility import * from FileBrowser import FileBrowser from . import ResourceMgr class ActorProperty: labelWidth = kivy.metrics.dp(150) labelHeight = kivy.metrics.dp(30) padding = kiv...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,217
ubuntunux/WorkSpace
refs/heads/master
/CProject/Python_C_Extension/bin/example.py
import spam spam.system("ls")
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,218
ubuntunux/WorkSpace
refs/heads/master
/Codes/CountingCodeLines/CountingCodeLines.py
import re testCase = '''/***** * This is a test program with 5 lines of code * \/* no nesting allowed! //*****//***/// Slightly pathological comment ending... public class Hello { public static final void main(String [] args) { // gotta love Java // Say hello System./*wait*/out./*for*/println/*i...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,219
ubuntunux/WorkSpace
refs/heads/master
/Codes/RectArea/RectArea.py
''' Python으로 작성했습니다. 면적에 해당하는 좌표를 리스트에 집어넣고 중복되는 영역은 무시하고 리스트 원소의 갯수를 센다. ''' def getArea(rects): pointList = set() for rect in rects: for x in range(rect[0], rect[2]): for y in range(rect[1], rect[3] pointList.add((x,y)) return len(pointList) rects=[] print("Input rectangle 4 ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,220
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox-master/core/mainLayout.py
# -*- coding: utf-8 -*- from kivy import platform from kivy.base import stopTouchApp from kivy.core.window import Window, Keyboard from kivy.properties import StringProperty, ObjectProperty from kivy.uix.boxlayout import BoxLayout from core.categoryScreen import CategoryScreen from core.mainScreen import MainScreen fro...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,221
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/cymunkdemo/ResourceMgr/ResourceMgr.py
import Utility as Util from Utility import * #---------------------# # Global instance #---------------------# def setGlobalInstance(): global gResMgr gResMgr = ResourceMgr.instance() class Resource: def __init__(self, key): self.key = key self.tag = [] self.img = [] self.snd = [] def addTag(self, ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,222
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/kivy-dialog-master/src/dialog/androiddialog.py
from kivy.clock import Clock from kivy.event import EventDispatcher from kivy.logger import Logger from functools import partial from jnius import autoclass, PythonJavaClass, java_method, cast from android import activity from android.runnable import run_on_ui_thread Builder = autoclass('android.app.AlertDialog$Buil...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,223
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/PyShowProperty/main.py
import Utility as Util from Utility import * import ShowProp STATE_ENTER = 0 STATE_START = 1 STATE_EXIT = 2 szDebug = 'none' #---------------------# # CLASS : StateMgr #---------------------# class State_Mgr(StateMachine): def __init__(self): self.addState(State_Enter()) # STATE_ENTER self.addState(State_Start...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,224
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/manager.py
import pyglet from pyglet import gl from pyglet_gui.constants import ANCHOR_CENTER, GetRelativePoint from pyglet_gui.core import Rectangle from pyglet_gui.containers import Wrapper class ViewerManagerGroup(pyglet.graphics.OrderedGroup): """ Ensure that Viewers inside Manager can be drawn with blending en...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,225
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/00_GameFrame/TabToSpace.py
import os for dirname, dirnames, filenames in os.walk('.'): for filename in filenames: if os.path.splitext(filename)[1].lower() == '.py': f = open(filename, 'r') lines = list(f) f.close() f = open(filename, 'w') for line in lines: f.writelines(line.replace("\t", " ")) ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,226
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/gui.py
import pyglet.text from pyglet_gui.constants import VALIGN_BOTTOM, HALIGN_LEFT, HALIGN_CENTER, ANCHOR_CENTER, GetRelativePoint from pyglet_gui.core import Rectangle, Viewer from pyglet_gui.controllers import Controller from pyglet_gui.containers import HorizontalContainer, VerticalContainer, Wrapper from pyglet_gui.but...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,227
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/TouchTouch/main.py
import Utility as Util from Utility import * import MyGame STATE_ENTER = 0 STATE_START = 1 STATE_PLAY = 2 STATE_EXIT = 3 szDebug = 'none' #---------------------# # CLASS : BlankScene #---------------------# class BlankScene(Widget): def __init__(self, startCallback): Widget.__init__(self) self.startCallback = s...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,228
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyopengl_examples/basic.py
import os from ctypes import c_void_p import numpy as np from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GL.shaders import * from PIL import Image import pygame from pygame.locals import * SIMPLE_VERTEX_SHADER = ''' #version 430 core struct VERTEX_INPUT { layout(location=0) vec3 position; la...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,229
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/DbdbDeep/Utility.py
#---------------------# # Import kivy #---------------------# import kivy from kivy.app import App from kivy.clock import Clock from kivy.core.window import Window from kivy.core.audio import SoundLoader from kivy.factory import Factory from kivy.graphics import Color, Rectangle, Point, GraphicException, Line, Quad, El...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,230
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/plane.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,231
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/JumpJump/Constants.py
from Utility import W,H TOUCH_TIME = 0.2 BASIC = H * 0.07 GRAVITY = BASIC * 21.0 FRICTION = 1.0 ELASTIN = 0.0 JUMP = BASIC * 11.05 BLOCK_SIZE = (BASIC, BASIC) CHARACTER_SIZE = (BASIC, BASIC) PATROL_MOVE_SPEED = BASIC * 2.1 MAX_MOVE_SPEED = BASIC * 10.5 MOVE_ACCELERATE = BASIC * 42 IDLE_TIME = (0.5, 2.0) PATROL_TIME...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,232
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/test_popup.py
from .setup import TestPygletGUI import pyglet.window from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button, OneTimeButton, Checkbox, FocusButton from pyglet_gui.gui import PopupMessage class TestPopupConfirm(TestPygletGUI): def setUp(self): TestPygletGUI.setUp(self) ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,233
ubuntunux/WorkSpace
refs/heads/master
/Codes/CommonString/CommonString.py
def findCommonString(s, lowerLengthString): if len(lowerLengthString) > len(s): s, lowerLengthString = lowerLengthString, s n = len(lowerLengthString) for i in range(n): for j in range(i+1): token = lowerLengthString[j:n-i+j] if token in s: print(len(...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,234
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/world.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,235
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/00_GameFrame/ResourceMgr/ResourceMgr.py
import os import Utility as Util from Utility import * from ActorProperty import ActorProperty directory = "Gamedata" class ID(int):pass class Resource: def __init__(self, name): self.name = name self.tag = [] self.image = None self.sound = None self.prop = None def addTag(self, tag): if not self...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,236
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/kivy-dialog-master/src/main.py
from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.properties import StringProperty from dialog import Dialog class DialogUI(BoxLayout): yesno = StringProperty('might do') def ask_user(self): d = Dialog(callback=self.set_yesno, text='Just do it?', ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,237
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/NumericKivy/state.py
from stateMachine import * STATE_NONE = 0 STATE_RESET = 1 STATE_MIX = 2 STATE_READY = 3 STATE_PLAY = 4 STATE_COMPLETE = 5 STATE_FAIL = 6 STATE_COUNT = 7 gameState = stateMachine(STATE_COUNT) class NumPuzzleGameBase(): bFirstGame = True szDebug = None level_name = ['Beginner', 'Intermediate', 'Advanced', 'Expert']...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,238
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/buttons.py
import pyglet.window from pyglet_gui.override import Label from pyglet_gui.constants import HALIGN_LEFT, HALIGN_RIGHT from pyglet_gui.controllers import TwoStateController from pyglet_gui.core import Viewer from pyglet_gui.mixins import FocusMixin class Button(TwoStateController, Viewer): def __init__(self, labe...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,239
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/container/main.py
# -*- coding: utf-8 -*- ''' Container Example ============== This example shows how to add a container to our screen. A container is simply an empty place on the screen which could be filled with any other content from a .kv file. ''' from kivy.app import App from kivy.lang import Builder from kivy.uix.boxlayout impor...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,240
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/JumpJump/MyGame.py
import Utility as Util from Utility import * import Animal from Animal import * from Particle import * from Shaders import * from ResourceMgr import ResourceMgr as ResMgr global gMyGame gMyGame = None gCenter = mul(Util.WH, 0.5) gWorldSize = mul(Util.WH, (3.0, 2.0)) Animal.gWorldSize = gWorldSize class Music(): ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,241
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/camera.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,242
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/NumericPuzzle/old/v02/stateMachine.py
class eventMachine(): def updateNone(self, pol): pol.state=99 onEnter = updateNone onUpdate = updateNone onExit = updateNone class stateMachine(): state = 0 aaa=eventMachine() def __init__(self): self.state = 99 self.aaa.onUpdate(self)
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,243
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Shooting/MyGame.py
import Utility as Util from Utility import * MYGAME_ENTER = 0 MYGAME_START = 1 MYGAME_EXIT = 2 #---------------------# # CLASS : MyGameStateMgr #---------------------# class MyGame_Mgr(StateMachine): def __init__(self): self.inited = False self.addState(MyGame_Enter()) # MYGAME_ENTER self.addState(MyGame_Start...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,244
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/kivy-browser-master/src/main.py
from kivy.app import App from kivy.uix.relativelayout import RelativeLayout class BrowserUI(RelativeLayout): pass class BrowserApp(App): def build(self): return BrowserUI() def on_pause(self): return True def on_resume(self): pass if __name__ == '__main__': BrowserApp(...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,245
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/main.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,246
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/KivyRpg/Sprite.py
import Utility as Util from Utility import * import math from kivy.graphics import Scale, Rotate, PushMatrix, PopMatrix, Translate, \ UpdateNormalMatrix class Sprite(Widget): def __init__(self, *args, **kargs): Widget.__init__(self) self.box = None self.boxPos = None self.bo...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,247
ubuntunux/WorkSpace
refs/heads/master
/Codes/PerfectNumber/PerfectNumber.py
from math import * def isPerfectNumber(n): divisors = [1, ] for i in range(2, floor(sqrt(n)) + 1): if n % i == 0: divisors.append(i) divisors.append(int(n / i)) return sum(divisors) == n def main(): perfectNumbers = [] N = int(input("Input Number : ")) for i...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,248
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/test_grid_container.py
from .setup import TestPygletGUI from pyglet_gui.core import Viewer from pyglet_gui.manager import Manager from pyglet_gui.containers import GridContainer class TestGridContainer(TestPygletGUI): """ This test case tests basic functionality of a grid container. """ def setUp(self): super(...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,249
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/3DEngine/main.py
""" The MIT License (MIT) Copyright (c) 2014 Niko Skrypnik 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 rights to use, copy, modify, merge...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,250
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/red_book_samples/blending.py
import sys try: from OpenGL.GLUT import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GL import shaders from OpenGL.arrays import vbo from vrml.arrays import * from numpy import concatenate, identity, transpose, multiply from datetime import datetime except: print '...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,251
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/override.py
import pyglet class Label(pyglet.text.Label): def update(self): self._update() def unload(self): self.delete() class InputLabel(pyglet.text.Label): def _get_left(self): if self._multiline: width = self._width else: width = self.content_width ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,252
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox/core/mainScreen.py
# -*- coding: utf-8 -*- import os from kivy.properties import ObjectProperty, StringProperty from kivy.uix.screenmanager import Screen from core.widgets.catalogItem import CatalogItem __author__ = 'gipzo' EXPERIMENTS_DIR = './experiments/' class MainScreen(Screen): grid = ObjectProperty() mainLayout = Objec...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,253
ubuntunux/WorkSpace
refs/heads/master
/Codes/ListCycle/ListCycle.py
import collections datas = input("Input : ").split(" ") cycleList = collections.deque(datas[1:]) cycleList.rotate(int(datas[0])) print("Output :", " ".join(cycleList))
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,254
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/KivyRpg/ObjectBase.py
from copy import copy from xml.etree.ElementTree import Element, dump, parse, SubElement, ElementTree import threading import Utility as Util from Utility import * from kivy.animation import Animation from ResourceMgr import gResMgr import ObjectTransform from Globals import * #---------------------# # Global Variabl...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,255
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/theme/__init__.py
from .theme import Theme, ThemeFromPath
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,256
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_landingzone/particle.py
# Copyright (c) 1998, Regents of the University of California # 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,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,257
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/NumericPuzzle/old/v02/main.py
import kivy from kivy.app import App from kivy.uix.button import Button from kivy.uix.gridlayout import GridLayout from kivy.uix.floatlayout import FloatLayout from kivy.uix.label import Label from kivy.uix.popup import Popup from kivy.uix.scatter import Scatter from kivy.uix.widget import Widget from kivy.properties i...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,258
ubuntunux/WorkSpace
refs/heads/master
/Codes/TapToSpace/example.py
def foo(): print("\tfoo") foo()
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,259
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/test_spacer.py
from .setup import TestPygletGUI from pyglet_gui.core import Viewer from pyglet_gui.manager import Manager from pyglet_gui.containers import HorizontalContainer, VerticalContainer, Spacer class TestSpacer(TestPygletGUI): """ Tests that the spacer is working correctly inside containers. """ def s...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,260
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox/experiments/kinetics/moon_movement/experiment.py
# -*- coding: utf-8 -*- import math from kivy.metrics import sp from kivy.properties import NumericProperty from kivy.uix.label import Label from core.widgets.controls.checkControl import CheckControl from core.widgets.controls.sliderControl import SliderControl from core.widgets.experimentWindow import ExperimentWin...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,261
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/setup.py
# encoding: utf-8 from distutils.core import setup setup(name='Pyglet-gui', version='0.1', description='An extension of pyglet for GUIs', long_description=open('README.md').read(), author='Jorge C. Leitão', url='https://github.com/jorgecarleitao/pyglet-gui', packages=('pyglet_gui', ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,262
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/memory Game/main.py
""" Copyright (c) 2012, Sylvain Alborini 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 list of conditions and the follow...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,263
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/pyglet_gui/constants.py
VALIGN_TOP = 1 VALIGN_CENTER = 0 VALIGN_BOTTOM = -1 HALIGN_LEFT = -1 HALIGN_CENTER = 0 HALIGN_RIGHT = 1 ANCHOR_TOP_LEFT = (VALIGN_TOP, HALIGN_LEFT) ANCHOR_TOP = (VALIGN_TOP, HALIGN_CENTER) ANCHOR_TOP_RIGHT = (VALIGN_TOP, HALIGN_RIGHT) ANCHOR_LEFT = (VALIGN_CENTER, HALIGN_LEFT) ANCHOR_CENTER = (VALIGN_CENTER, HALIGN_...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,264
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/setup.py
import os import sys sys.path.insert(0, os.path.abspath('../')) import pyglet window = pyglet.window.Window(640, 480, resizable=True, vsync=True) batch = pyglet.graphics.Batch() @window.event def on_draw(): window.clear() batch.draw()
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,265
ubuntunux/WorkSpace
refs/heads/master
/Codes/ShortestPair/ShortestPair.py
S = [1, 3, 4, 8, 13, 17, 20] pairs = zip(S[:-1], S[1:]) print(sorted(pairs, key=lambda pair:abs(pair[0]-pair[1]))[0])
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,266
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/red_book_samples/camera.py
from __future__ import division import sys from scipy.linalg import orth try: from OpenGL.GLUT import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GL import shaders from OpenGL.arrays import vbo from vrml.arrays import * from numpy import concatenate, identity, transpose, ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,267
ubuntunux/WorkSpace
refs/heads/master
/Codes/CountOfEight/CountOfEight.py
print(sum([str(i).count('8') for i in range(1,10001)]))
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,268
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/spacer.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button from pyglet_gui.containers import HorizontalContainer, VerticalContainer, Spacer from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [255...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,269
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/button_highlight.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button from pyglet_gui.mixins import HighlightMixin from pyglet_gui.theme import Theme theme = Theme({ "font": "Lucida Grande", "font_size": 12, "font_size_small": 10, ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,270
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox-master/core/widgets/controls/checkControl.py
# -*- coding: utf-8 -*- from kivy.properties import StringProperty, BooleanProperty, ObjectProperty from core.widgets.controls.baseControl import BaseControl __author__ = 'gipzo' class CheckControl(BaseControl): label = StringProperty('') description = StringProperty('') value = BooleanProperty(False) ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,271
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/KivyRpg/main.py
import Utility as Util from Utility import * from Globals import * from MyGame import gMyGame #---------------------# # Global instance #---------------------# def setGlobalInstance(): global gMenuScreen, gMainMenu gMenuScreen = MyGame_Screen.instance() gMainMenu = MainMenu_Mgr.instance() #--------------------...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,272
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/sliders.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.containers import VerticalContainer from pyglet_gui.sliders import HorizontalSlider from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color": [255, 255, 255, 255], ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,273
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/examples/containers.py
from setup import * from pyglet_gui.manager import Manager from pyglet_gui.buttons import Button from pyglet_gui.containers import VerticalContainer, HorizontalContainer, GridContainer from pyglet_gui.theme import Theme theme = Theme({"font": "Lucida Grande", "font_size": 12, "text_color...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,274
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/RevMob/main.py
__version__ = '0.2' import kivy kivy.require('1.7.2') from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.gridlayout import GridLayout from kivy.utils import platform from kivy.logger import Logger from kivy.ext import load from kivy.utils import platform from ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,275
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/3DEngine/kivy3/tests/test_scene.py
import os import unittest from kivy3 import Scene from kivy3.loaders import WaveLoader this_dir = os.path.abspath(os.path.dirname(__file__)) class SceneTestCase(unittest.TestCase): def test_load_scene(self): scene = Scene() loader = WaveLoader() obj_path = os.path.join(this_dir, 'testnur...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,276
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/Game_physics-sandbox/experiments/optics/refraction/experiment.py
# -*- coding: utf-8 -*- import math from kivy.properties import NumericProperty, ObjectProperty from kivy.utils import boundary from core.widgets.controls.sliderControl import SliderControl from core.widgets.experimentWindow import ExperimentWindow from core.widgets.lineWidget import LineWidget from core.widgets.phys...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,277
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/NumericKivy/main.py
import kivy from kivy.app import App from kivy.clock import Clock from kivy.core.window import Window from kivy.core.audio import SoundLoader from kivy.factory import Factory from kivy.graphics import Color, Rectangle, Point, GraphicException, Line, Quad, Ellipse from kivy.graphics.opengl import glLineWidth from kivy.l...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,278
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/JumpJump/Stage.py
import math, time import Utility from Utility import * from kivy.animation import Animation from Sprite.Sprite import Sprite, SpriteMgr from Particle.Particle import gFxMgr from Character import gCharacterMgr, BaseCharacter from Stuff import gStuffMgr from ResourceMgr.ResourceMgr import gResMgr from Constants import *...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,279
ubuntunux/WorkSpace
refs/heads/master
/Codes/FindFile/FindFile.py
import os import glob def findFile(dirname = "."): for filename in glob.glob(os.path.join(dirname, "**/*.txt"), recursive=True): for encoding in ("UTF-8", "UTF-16", "euc-kr", "ascii"): try: with open(filename, "r", encoding=encoding) as f: lines = f.read() ...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,280
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/RevMob/revmob/android.py
from jnius import autoclass print("Loading RevMob Android SDK") RevMobNative = autoclass('com.revmob.RevMob') RevMobTestingMode = autoclass('com.revmob.RevMobTestingMode') PythonActivity = autoclass('org.renpy.android.PythonActivity') TESTING_MODE_DISABLED = RevMobTestingMode.DISABLED TESTING_MODE_WITH_ADS = RevMobT...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,281
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/JumpJump/Particle.py
import Utility as Util from Utility import * class FxMgr: inited = False emitters = {} def __init__(self, parent_layer): self.parent_layer = parent_layer self.inited = True def clear_emitter(self): for i in self.emitters: self.emitters[i].clear_particle() def get_emitter(self, name): return self.e...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,282
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/00_GameFrame/GameFrame.py
import Utility as Util from Utility import * #---------------------# # CLASS : GameRoot #---------------------# class GameRoot(FloatLayout): def __init__(self): super(GameRoot, self).__init__() self.size = Window.size Util.gGameRoot = self Clock.schedule_interval(self.update, Util.fUpdateTime) def upda...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,283
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/pyglet-gui-master/tests/test_dialog.py
from .setup import TestPygletGUI from pyglet_gui.manager import Manager from pyglet_gui.core import Viewer import pyglet_gui.constants class TestDialog(TestPygletGUI): """ This test case tests basic functionality of widget+manager. We use an empty widget for this. """ def setUp(self): s...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,284
ubuntunux/WorkSpace
refs/heads/master
/KivyProject/Examples/compass/main.py
''' Compass example =============== This example is a demonstration of Hardware class usage. But it has severals drawbacks, like using only the magnetic sensor, and extrapolating values to get the orientation. The compass is absolutely not accurate. The right way would be to get the accelerometer + magnetic,...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,285
ubuntunux/WorkSpace
refs/heads/master
/PythonProject/ModernGL_examples/tests/test_documentation.py
import re import os import unittest import ModernGL EMPTY_SET = set() def read_docs(filename): root = os.path.dirname(os.path.dirname(__file__)) f = open(os.path.normpath(os.path.join(root, 'docs', filename))) docs = f.read() f.close() return docs def detect_members(docs): search = re.sea...
{"/PythonProject/pyglet-gui-master/pyglet_gui/theme/templates.py": ["/PythonProject/pyglet-gui-master/pyglet_gui/theme/elements.py"], "/KivyProject/Examples/RevMob/revmob/__init__.py": ["/KivyProject/Examples/RevMob/revmob/android.py", "/KivyProject/Examples/RevMob/revmob/ios.py"], "/PythonProject/pyglet-gui-master/tes...
32,320
pierg/wasp-secourse-lund
refs/heads/master
/src/pigtranslator.py
import re def extract_punctuation(text): new_text = [] for word in text: m = re.split('(\W+)',word) m = list(filter(None, m)) new_text.extend(m) return new_text def Translate(sentence): #algorithm to translate from english to pig latin #based on the rules set in wikip...
{"/tests.py": ["/src/pigtranslator.py"]}
32,321
pierg/wasp-secourse-lund
refs/heads/master
/tests.py
import unittest from src.pigtranslator import Translate from src.pigtranslator import readfile class TestTranslate(unittest.TestCase): #For rule 1 in Wikipedia def test_consonantSounds(self): s = 'pig' self.assertEqual(Translate(s), 'igpay') #For rule 2 in Wikipedia def test_consonant...
{"/tests.py": ["/src/pigtranslator.py"]}
32,366
ElvinOuyang/todoist-history-analytics
refs/heads/master
/test-data-load.py
import todoist_functions as todofun import mysql_functions as sqlfun import datetime if __name__ == '__main__': api = todofun.create_api() act = api.activity.get(limit=100) act_df = todofun.transform_act(act) act_df = todofun.df_standardization(act_df) sqlfun.overwrite_table_mysql(act_df, 'activity...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,367
ElvinOuyang/todoist-history-analytics
refs/heads/master
/test-api-download.py
from todoist.api import TodoistAPI import todoist_functions as todofun import pandas as pd import datetime if __name__ == '__main__': # set up api engine to my developer app api = todofun.create_api() # get one-time activity log from api act = api.activity.get(limit=100) act_df = todofun.transform...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,368
ElvinOuyang/todoist-history-analytics
refs/heads/master
/mysql_update_history.py
import todoist_functions as todofun import mysql_functions as sqlfun if __name__ == '__main__': since_date = sqlfun.get_latest_eventdate() update_df = todofun.act_fetch_new(since=since_date) print('>>> update_df is created with shape {}'.format(update_df.shape)) print('>>> the update history ranges fro...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...
32,369
ElvinOuyang/todoist-history-analytics
refs/heads/master
/todoist_functions.py
import pandas as pd from todoist.api import TodoistAPI import os import sys import numpy as np import datetime def create_api(): try: token = os.environ['TODOIST_TOKEN'] except KeyError: sys.stderr.write("TODOIST_* environment variable not set\n") sys.exit(1) api = TodoistAPI(token...
{"/test-data-load.py": ["/todoist_functions.py", "/mysql_functions.py"], "/test-api-download.py": ["/todoist_functions.py"], "/mysql_update_history.py": ["/todoist_functions.py", "/mysql_functions.py"], "/print_recent_activities.py": ["/todoist_functions.py"], "/mysql_save_full_history.py": ["/todoist_functions.py", "/...