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
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,553
  • 7
  • 21
  • 36
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
3 answers

Laravel Livewire: load livewire component with button click

There are 3 livewire components UserIsExpired, UserIsActive and UserIsPending and 3 buttons respective to each component. When a button is clicked, it should replace previous component with its respective component.
Ahsan
  • 1,289
  • 3
  • 13
  • 37
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,833
  • 11
  • 24
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
  • 377
  • 1
  • 10
  • 21
3
votes
3 answers

Error while installing livewire 3 through composer

I have some problems with installing livewire 3 package, I am getting this: Problem 1 Root composer.json requires livewire/livewire 3.0@beta, found livewire/livewire[dev-throw-error-when-testing-non-livewire-class, ..., dev-bad-hotfix-test, v0.0.1,…
Ali FD
  • 33
  • 4
3
votes
4 answers

Get type parameter value from URL with livewire

I wanted to get the value of type from the url "example.com/user?type=agent" using livewire. I have tried using Input::get('type') but is not working in livewire component class
Abenslive
  • 105
  • 1
  • 1
  • 11
3
votes
1 answer

how to ignore rerendering on laravel livewire component while typing

i have a wizard form that is a livewire component and it always rerender when i am typing. I want to stop de rerendering until i submit the form. Who can help me please ? Sorry for the bad english i'm french.
momo
  • 33
  • 1
  • 4
3
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
  • 151
  • 1
  • 2
  • 11
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
  • 591
  • 3
  • 12
  • 21
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
  • 891
  • 1
  • 9
  • 15
2
votes
1 answer

Laravel - Livewire, how to customize the global message URL?

Using a custom domain like the example below is not telling Livewire requests to be prefixed with the same subdomain subdomain1 in this example: Route::domain('subdomain1.'.env('APP_DOMAIN', 'localhost')) …
Suhail Kawsara
  • 466
  • 3
  • 11
2
votes
2 answers

Bootstrap select2 in livewire keeps disappearing when I submit the form

I have a problem with my code the select2 is displaying only once when I refresh the page but it disappears when I submit the form or if there was a validation error it will disappear too. I tried wire:ignore The select2 doesn't disappear but it…
Nano
  • 87
  • 1
  • 10
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,843
  • 8
  • 48
  • 94
2
votes
5 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,578
  • 5
  • 24
  • 40
1
2 3
10 11