Search found 43 matches

by buffalo
Fri Mar 02, 2018 10:43 am
Forum: Projects
Topic: thorpy exercice 3
Replies: 0
Views: 1635

thorpy exercice 3

I tried to use MVC and observer pattern, and image caching for logos and faces.


https://mega.nz/#!w7Bk1DDT!4O2tYEGYgi2utFv0RqS42ZedmV5lKzScgZbY2RmGxos

Image
by buffalo
Tue Jan 30, 2018 3:09 am
Forum: Projects
Topic: thorpy exercice 2
Replies: 0
Views: 1853

thorpy exercice 2

http://www.pygame.org/thumb/5962aaf73d5cdd524ec9d69a4a37a42e.png https://mega.nz/#!g2BSWQ4Q!XC8mKVzG8Jz2QsRxkTDKUNxwfy5QzzJ1uY0xg-NqH4M http://www.pygame.org/project/3359/5425 #! /usr/bin/env python3 # -*- coding: utf-8 -*- import thorpy from thorpy.elements._wrappers import * import pygame import ...
by buffalo
Thu Jan 25, 2018 4:19 pm
Forum: General ThorPy help
Topic: transparancy with png
Replies: 2
Views: 3372

Re: transparancy with png

An example tip to solve the problem:

Code: Select all

logoAlien = thorpy.load_image("mini_alien.png").convert()
transColor = logoAlien.get_at((0,0))
logoAlien.set_colorkey(transColor)
by buffalo
Mon Dec 25, 2017 11:49 pm
Forum: Projects
Topic: thorpy exercice 1
Replies: 1
Views: 2123

Re: thorpy exercice 1

This short script illustrate only little part of goodies that offers thorpy library, which helps to manage with buttons, very usefull for your pygame games.
by buffalo
Mon Dec 25, 2017 11:48 pm
Forum: Projects
Topic: thorpy exercice 1
Replies: 1
Views: 2123

thorpy exercice 1

#! /usr/bin/env python3 # -*- coding: utf-8 -*- # exercice 1 version 1 # --------------------- # grey rectangle item symbolize things very deep or very high at different scale. # you can place it in red or green area (boxes) thanks to OK or X button # you can come back to centralbox thanks to ^ but...
by buffalo
Tue Dec 19, 2017 10:06 pm
Forum: Bug Tracking
Topic: ghost.py : add_elements : 'Element' object is not iterable
Replies: 1
Views: 2524

ghost.py : add_elements : 'Element' object is not iterable

I have trouble for displaying neo elements not present at launching. When i click on ADD button, i want to add a new element , thanks to inserter to get title and corpus of the wanted new element. I get this traceback: Traceback (most recent call last): File "main.py", line 181, in <module...
by buffalo
Sun Dec 17, 2017 5:21 pm
Forum: General ThorPy help
Topic: display items problem
Replies: 2
Views: 2605

Re: display items problem

How to easy come back at central box after being moved ? I want to use ^ button to move back from red or green area to central box. 2 ways : First : one specific button (ie from green area to central box) : easy, i need one ^ green and one ^ red button Second : one ^ generalistic button , working fr...
by buffalo
Sun Nov 12, 2017 1:45 pm
Forum: General ThorPy help
Topic: display items problem
Replies: 2
Views: 2605

display items problem

Hi, i'd like to move element from centralbox to the red or green area when i click on X or v button. Add button create new element in centralbox. Reset destroy all elements in centralbox, green area and red area. https://i.imgur.com/9EoUlqk.png main.py #! /usr/bin/env python3 # -*- coding: utf-8 -*-...
by buffalo
Fri Jul 14, 2017 9:32 am
Forum: General ThorPy help
Topic: transparancy with png
Replies: 2
Views: 3372

transparancy with png

I have pictures with png files which background should have total transparency.
I get a black background in place, i dont know how to fix that.

Go to advanced search