More print debug stuff

ay
pull/1/head
Julius Riegel 7 years ago
parent 245bb84fa0
commit 77fef8285d

@ -2,7 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="49388e57-2b9e-468a-b880-1d7fb243112d" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/update.sh" afterPath="$PROJECT_DIR$/update.sh" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/main.py" afterPath="$PROJECT_DIR$/main.py" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
@ -26,11 +26,11 @@
</provider>
</entry>
</file>
<file leaf-file-name="main.py" pinned="false" current-in-tab="false">
<file leaf-file-name="main.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="474">
<caret line="36" column="26" lean-forward="false" selection-start-line="36" selection-start-column="26" selection-end-line="36" selection-end-column="26" />
<state relative-caret-position="542">
<caret line="53" column="21" lean-forward="false" selection-start-line="53" selection-start-column="21" selection-end-line="53" selection-end-column="21" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
@ -38,7 +38,7 @@
</provider>
</entry>
</file>
<file leaf-file-name="update.sh" pinned="false" current-in-tab="true">
<file leaf-file-name="update.sh" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/update.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
@ -85,8 +85,8 @@
<option value="$PROJECT_DIR$/motor.py" />
<option value="$PROJECT_DIR$/servo_2.py" />
<option value="$PROJECT_DIR$/thermo.py" />
<option value="$PROJECT_DIR$/main.py" />
<option value="$PROJECT_DIR$/update.sh" />
<option value="$PROJECT_DIR$/main.py" />
</list>
</option>
</component>
@ -456,16 +456,6 @@
</entry>
<entry file="file://$PROJECT_DIR$/servo_2.py" />
<entry file="file://$PROJECT_DIR$/thermo.py" />
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="474">
<caret line="36" column="26" lean-forward="false" selection-start-line="36" selection-start-column="26" selection-end-line="36" selection-end-column="26" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/update.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="51">
@ -474,5 +464,15 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="542">
<caret line="53" column="21" lean-forward="false" selection-start-line="53" selection-start-column="21" selection-end-line="53" selection-end-column="21" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

@ -40,13 +40,18 @@ def main():
clock.tick(25)
for event in pygame.event.get():
if event.type == pygame.QUIT:
print('quit event')
running = False
dict = jstick.handle()
print('joystick handled')
list.set_dict(dict)
all_sprites.update()
print('updating sprites')
update_rects = all_sprites.draw(screen.screen)
print('drawing sprites')
screen.refresh(rectangles= update_rects)
print('refreshing screen')
pygame.quit()

Loading…
Cancel
Save