Questions tagged [livewires]

LiveWires is a Python package designed to be used as part of the "LiveWires" programming course, a course intended to teach Python to young, first-time programmers. LiveWires might also refer to the course itself.

LiveWires is a Python package designed to be used as part of the "LiveWires" programming course, a course intended to teach Python to young, first-time programmers. It is built on top of and .

The LiveWires package is licensed under the

160 questions
1
vote
1 answer

Laravel Livewire update array checkbox. ( Edit Form )

i stack with livewire Update with checkbox array please help. Form
@foreach ($permissions as $key => $pms)
Koung Buntha
  • 135
  • 1
  • 1
  • 9
1
vote
1 answer

Debugging sample pygame code. Possibly error with super(), yet again

Can't figure out what's wrong. All I know is that it doesn't execute. Find the trackback at the bottom. EDIT: UPDATED, still doesn't run as should... from livewires import games SCREENWIDTH = 666 SCREENHEIGHT = 461 games.init (screen_width =…
Louis93
  • 3,843
  • 8
  • 48
  • 94
1
vote
1 answer

How do i properly install livewires?

I'm teaching myself python with a text book I have, and i'm nearing the end of of the book. But it wants me to install pygame and livewires for the lesson's project. After awhile i installed pygame and it's working well, but i can't get livewires to…
1
vote
1 answer

Can't save Tiny MCE data | Laravel 8 Livewire

I have implemented Tiny MCE for my news articles and got it working with the code below. When I implement the same code on a different crud page the Tiny MCE content doesn't save into my variable. Create.blade.php
K.Pardoen
  • 51
  • 4
1
vote
2 answers

pygame freezes when I try to exit it after running it from IDLE!

I'm running it through the livewires wrapper which is just training wheels for pygame and other python modules in general; but everytime I run it, it'll execute and when I try to exit, it will not respond and then crash. Any input on how I could go…
Louis93
  • 3,843
  • 8
  • 48
  • 94
1
vote
1 answer

How to have method called everytime variable increases?

I'm trying to add some difficulty in "game". Basically I want to call method to increase speed of a sprite everytime players score is multiply of 100 (it should happen on 100, 200, etc.). I'm using pygame and livewires packages. How I handled it was…
korni
  • 89
  • 9
1
vote
0 answers

ModuleNotFoundError while trying to use livewires and pygame for Python 3.6

I am using Python 3.6 and have succesfully installed pygame 1.9.3 and livewires 2.0. I am trying to run the following code: from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) games.screen.mainloop() And I get…
1
vote
1 answer

python 2.7 livewires - 'module' object has no attribute 'init'

I have a problem with programme from my book. There is simply code written by me: from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) games.screen.mainloop() And error: Traceback (most recent call last): …
diego9403
  • 13
  • 4
1
vote
1 answer

How to debug Pygame application with Visual Studio during runtime

I've been making a small game for a homework assignment using Pygame with Livewires. I've been trying to debug it, but to no success; I can't get a look at the variables I want to look at before the main loop is executed. Though I can press F10 to…
Tespy
  • 971
  • 2
  • 9
  • 18
1
vote
1 answer

Update an individual sprite in a game loop

I am trying to move only one sprite in a game loop including two sprites. I have included spr1 in the Bit.update() method so if w is pressed spr1.y -= 60. In other words the sprite is assigned to self in the hope that only spr1 will be moved when w…
Astrophe
  • 568
  • 1
  • 7
  • 25
1
vote
3 answers

Installing livewires for python

I am working on an assignment for school, and didn't realize that I needed to install the pygame/livewires package to use the program I am writing, because I have been using a school laptop while in class and haven't used my personal laptop. It is a…
E. Ingraham
  • 73
  • 1
  • 2
  • 6
1
vote
0 answers

Error in GUI program

I was making a GUI program which would display a text on the top right corner of the screen. But when I ran the program, the screen just closed after 1-2 seconds without displaying the text. from livewires import games,color my_screen =…
Sahib Navlani
  • 68
  • 1
  • 12
1
vote
2 answers

'Cannot import name games'

I'm a beginner and so far I have about 3 hours invested installing pygame( ie getting the python interpreter to accept 'from livewires import games, color' to check both 'pygame' and 'livewires' have installed). However, when I ran my first source…
Michael Johnson
  • 470
  • 6
  • 18
1
vote
2 answers

How to access a global object inside of a class?

I need to access a global object inside of a class to change it's image. Here's the code: import pygame from livewires import games from livewires import color import time import random games.init(screen_width = 640, screen_height = 480, fps =…
Lixerman99
  • 151
  • 1
  • 2
  • 11
1
vote
1 answer

Python, Pygame, Livewires - How to make smooth collisions?

for spike in self.overlapping_sprites: spike.handle_collide These two lines are coding magic for beginners. However, I seem to have hit a brick wall in my games. After testing around I cannot find a way to make collisions more Precise! What I…
Lixerman99
  • 151
  • 1
  • 2
  • 11
1 2
3
10 11