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

91 questions
8
votes
2 answers

Python livewires resize screen

I am trying to create a game using livewires in which there are multiple levels. In each level, the screen will need to be a different size, so either I can create a new screen, or I can resize it. When I tried a new screen, like this (mcve): from…
Artemis
  • 2,031
  • 6
  • 17
  • 32
6
votes
1 answer

__init__() got an unexpected keyword argument 'text'

I have been programming from the book Python for Absolute Beginners, using Python 3.3.1. I am trying to add text to a screen using the following code. I need to stay in Python 3.3.1 but the code from the book I think is for Python 2.X. from…
user3375363
  • 61
  • 1
  • 1
  • 2
4
votes
0 answers

pygame won't show background image on OSX Mojave, python 2.7.15

I've been coding for a long time but am working my way through a beginner Python book to get acclimated to the syntax. I've worked through some serious obstacles getting pygame installed and have encountered an insurmountable problem. This simple…
S. Imp
  • 2,425
  • 8
  • 18
4
votes
2 answers

Is there a way that while running pygame, I can also run the console too?

I was wondering if there is a way, in python, that while my graphical piece inside my games.screen.mainloop() is running, if I can do something like get user input through raw_input() from the console.
emufossum13
  • 357
  • 1
  • 8
  • 19
3
votes
3 answers

How do I import colors?

Can anyone explain to me how to import the Python colors? This is for a programming assignment, but I'm stuck here and can't find tutorials online. I tried from livewires import games, color File…
HowbeitGirl
  • 611
  • 3
  • 10
  • 20
2
votes
4 answers

Python AttributeError: 'module' object has no attribute 'init'

I was running a simple python file: from livewires import games games.init(screen_width = 640, screen_height = 480, fps = 50) games.screen.mainloop() When I run this in IDLE, I get the error printed in the title. I copy and pasted this code from…
Grant
  • 739
  • 1
  • 6
  • 14
2
votes
1 answer

Debugging sample Pygame code?

A simple question: Why does this the first code work but the seemingly identical second code freezes up when the pygame window comes? # Moving Pan # Demonstrates mouse input from livewires import games games.init(screen_width = 640, screen_height…
Louis93
  • 3,609
  • 8
  • 43
  • 86
2
votes
1 answer

Scrolling text in pygame

How would I go about achieving scrolling text in pygame? As the Text class is derived from Sprite, I thought I would be able to wrap it in the usual way I would a Sprite object. Instead, it simply disappears off the left edge of the screen, never to…
Michael Johnson
  • 450
  • 5
  • 15
2
votes
1 answer

__init__() got unexpected keyword argument 'y'

I'm following the book, 'Python Programming For The Absolute Beginner' and decided to test some of my skills by making my own game. The game is basically "don't get hit by the flying spikes" and I have come across a problem with it. When running it…
Lixerman99
  • 141
  • 1
  • 2
  • 11
2
votes
0 answers

'Python Programming for the absolute beginner' - livewires

I want to put a stop to this damn problem once and for all. In the 'Python Programming for the absolute beginner' book, it asks you to download its special version of livewires and pygame along with python 3.1.1. However, using the code from…
Lixerman99
  • 141
  • 1
  • 2
  • 11
2
votes
2 answers

Why can't I install pygame and livewires in python for the book 'Python Programming for the absolute beginner'?

In Python Programming for the Absolute Beginner, it requires you to download pygame and livewires. The book links you to a page where you can download a bundle of folders made for the book. In these folders are a setup wizard for pygame and a .bat…
Lixerman99
  • 141
  • 1
  • 2
  • 11
2
votes
1 answer

'Dodger'-type game

I am attempting to write a game using livewires and pygame where I have a chef (only image I had, haha), avoid rocks that are falling from the sky. The rocks are supposed to fall in random places. I want it to be that 1 rock falls to begin with,…
Jam
  • 223
  • 1
  • 5
  • 14
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,609
  • 8
  • 43
  • 86
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
3 answers

laravel - livewire Full-Page Components

I use laravel 8. I define protected namespace in RouteServiceProvider: protected $namespace = 'App\Http\Controllers'; then use livewire with the below route: Route::get('/xxx' , App\Http\Livewire\Counter::class); but I have the below error…
Mostafa Norzade
  • 1,059
  • 2
  • 17
  • 35
1
2 3 4 5 6 7