Skip to content

Imports fixes #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Code/Python/Apps/Europython09/App/simplegame-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import Axon
import pygame
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo

from Kamaelia.Apps.Games4Kids.BasicSprite import BasicSprite
from Kamaelia.Apps.Games4Kids.SpriteScheduler import SpriteScheduler
Expand Down
1 change: 0 additions & 1 deletion Code/Python/Apps/GSOCPaint/App/KamPaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# limitations under the License.
# -------------------------------------------------------------------------

from pygame.locals import *
from Axon.experimental.Process import ProcessGraphline

from Kamaelia.Chassis.Seq import Seq
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Apps/Games4Kids/App/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def main(self):
yield 1


from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo
Backplane("PLAYERS").activate()

Pipeline(
Expand Down
4 changes: 2 additions & 2 deletions Code/Python/Apps/Kamaelia-ERModeller/App/Modeller.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Console import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo
from Kamaelia.Util.Console import ConsoleReader, ConsoleEchoer
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Visualisation.PhysicsGraph.TopologyViewer import TopologyViewer
from Kamaelia.Visualisation.PhysicsGraph.lines_to_tokenlists import lines_to_tokenlists
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Apps/Kamaelia-Grey/App/greylisting.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from Kamaelia.Internet.TimeOutCSA import NoActivityTimeout
from Kamaelia.Internet.ConnectedSocketAdapter import ConnectedSocketAdapter

from Kamaelia.Apps.Grey.Support import *
from Kamaelia.Apps.Grey.Support import SlurpFile, openConfig, parseConfigFile

from Kamaelia.Apps.Grey.MailHandler import MailHandler
from Kamaelia.Apps.Grey.ConcreteMailHandler import ConcreteMailHandler
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Apps/ScribbleNLink/App/ScribbleNLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import random
import Axon

from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Chassis.Graphline import Graphline

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls.defaults import *
#FIXME: --removed from recent django from django.conf.urls.defaults im port *
from piston.resource import Resource
from bookmarks.api.handlers import ProgrammesHandler, SummaryHandler, TimestampHandler, TweetHandler

Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Apps/SocialBookmarks/App/web/bookmarks/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls.defaults import *
#FIXME: --removed from recent django from django.conf.urls.defaults im port *

# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Apps/SpeakNWrite/App/SpeakNWrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Chassis.Graphline import Graphline

from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo
from Kamaelia.Util.Console import ConsoleEchoer

from Kamaelia.UI.Pygame.Display import PygameDisplay
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Axon/Axon/Component.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def closeDownComponent(self):
from Axon.Scheduler import scheduler
from Axon.AxonExceptions import noSpaceInBox
from Axon.Linkage import linkage
from Axon.Ipc import *
from Axon.Ipc import ipc, WaitComplete, reactivate, newComponent, shutdownMicroprocess, notify, shutdown, status, wouldblock, producerFinished, errorInformation


from Axon.Box import makeInbox,makeOutbox
Expand Down
3 changes: 2 additions & 1 deletion Code/Python/Axon/Axon/Scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ def waitOneSecond(self):
from Axon.debug import debug
from Axon.Microprocess import microprocess
from Axon.Base import AxonObject as _AxonObject
from Axon.Ipc import *
from Axon.Ipc import ipc, WaitComplete, reactivate, newComponent, shutdownMicroprocess, notify, shutdown, status, wouldblock, producerFinished, errorInformation

try:
import Queue as queue
vrange = xrange
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Axon/Examples/Simple/README.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python

from Axon.Component import *
from Axon.Component import component, newComponent, scheduler

class Producer(component):
Inboxes=[]
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Axon/Examples/Simple/all.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python

from Axon.Component import *
from Axon.Component import component, newComponent, scheduler

class Consumer(component):
Inboxes = ["source"]
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Axon/README
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ the running system)

Example code:

from Axon.Component import *
from Axon.Component import component, newComponent, scheduler

class Producer(component):
Inboxes=[]
Expand Down
4 changes: 2 additions & 2 deletions Code/Python/Kamaelia/Examples/Backplane/Forwarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import time
import Axon
from Kamaelia.Util.Backplane import *
from Kamaelia.Util.Console import *
from Kamaelia.Util.Backplane import Backplane, PublishTo, SubscribeTo
from Kamaelia.Util.Console import ConsoleReader, ConsoleEchoer
from Kamaelia.Chassis.Pipeline import Pipeline

class Source(Axon.ThreadedComponent.threadedcomponent):
Expand Down
2 changes: 1 addition & 1 deletion Code/Python/Kamaelia/Examples/Files/SimpleReading.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from Kamaelia.Util.Console import *
from Kamaelia.Util.Console import ConsoleReader, ConsoleEchoer
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.File.Reading import SimpleReader
from Kamaelia.Util.RateFilter import MessageRateLimit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@

import UI

# from pygame.locals import *



class ParticleDragger(UI.MH.DragHandler):
def detect(self, pos, button):
inRange = self.app.physics.withinRadius( pos, app.particleRadius )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import Kamaelia.UI.MH

import pygame
from pygame.locals import *

from random import randrange
import random
Expand Down Expand Up @@ -99,8 +98,8 @@ def makeParticle(self, label, position, nodetype, particleRadius):
self.physics.add( particle )

def initialiseComponent(self):
self.addHandler(MOUSEBUTTONDOWN, lambda event: ParticleDragger(event,self))
self.addHandler(KEYDOWN, self.quit)
self.addHandler(pygame.MOUSEBUTTONDOWN, lambda event: ParticleDragger(event,self))
self.addHandler(pygame.KEYDOWN, self.quit)

self.laws = Kamaelia.Support.Particles.SimpleLaws(bondLength = 100)
self.physics = Kamaelia.Support.Particles.ParticleSystem(self.laws, [], 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import UI

import pygame
from pygame.locals import *

from random import randrange
import random
Expand Down Expand Up @@ -97,8 +96,8 @@ def makeParticle(self, label, position, nodetype, particleRadius):
self.physics.add( particle )

def initialiseComponent(self):
self.addHandler(MOUSEBUTTONDOWN, lambda event: ParticleDragger(event,self))
self.addHandler(KEYDOWN, self.quit)
self.addHandler(pygame.MOUSEBUTTONDOWN, lambda event: ParticleDragger(event,self))
self.addHandler(pygame.KEYDOWN, self.quit)

self.laws = Physics.Simple.SimpleLaws(bondLength = 100)
self.physics = Physics.Simple.ParticleSystem(self.laws, [], 0)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading