Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
[deleted comment]

from pgu.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Here i make some changes. I close the program and start it agian. As you can 
see on photo 1 and 2, they are reversed, but when i print the booleans. It 
shows the same results?

Original comment by [email protected] on 22 Apr 2011 at 10:51

  • Added labels: ****
  • Removed labels: ****

Attachments:

from pgu.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Could you be more specific about what you're doing here?

1. What operating system are you using?
2. What version of PGU are you using? What version of pygame?
3. Post a complete transcript of the commands you are entering into the python 
interpreter. How are you assigning the fullscreen variable? hwsurface? etc...
4. What are the first two screenshots of? Is that a windows config dialog?

Original comment by [email protected] on 22 Apr 2011 at 8:59

  • Added labels: ****
  • Removed labels: ****

from pgu.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I have made an little example to show it. As you can see, the value, resizable, 
is False, and it prints False. But when you use the switch it print False 
again. The thrid time it shows True.

Original comment by [email protected] on 24 Apr 2011 at 6:30

  • Added labels: ****
  • Removed labels: ****

Attachments:

from pgu.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I'm having trouble extracting the zip file. Could you just post the python file 
in question - I don't need the pgu source code as well.

Also what operating system are you using?

Original comment by [email protected] on 24 Apr 2011 at 7:02

  • Added labels: ****
  • Removed labels: ****

from pgu.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
# -*- coding: utf-8 -*-
import sys; sys.path.insert(0, "..")
import pygame
from pygame.locals import *
from sys import exit
from pgu import gui
pygame.init()

# Changing mouse settings
pygame.mouse.set_visible(True)

resizable = False
print resizable


def write_str(value):
    print str(value.value)


app = gui.Desktop()
app.connect(gui.QUIT,app.quit,None)

c = gui.Table(width=100,height=100)

c.tr()
c.td(gui.Label("Resizable"))
RE = gui.Switch(resizable)
RE.connect(gui.CLICK, write_str, RE)
c.td(RE)


app.run(c)





---------------

I'm using both Windows 7 and Mac OS X, and get the same results.

Original comment by [email protected] on 24 Apr 2011 at 8:08

  • Added labels: ****
  • Removed labels: ****

from pgu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.