Coder Social home page Coder Social logo

Python 2.7 GUI Support about teaser HOT 15 CLOSED

rwth-ebc avatar rwth-ebc commented on July 21, 2024
Python 2.7 GUI Support

from teaser.

Comments (15)

PRemmen avatar PRemmen commented on July 21, 2024

We should/need to support that, also in the GUI.
@yGoerguelue and @CGingter could you fix that? Is it possible to implement UnitTests also for GUI

from teaser.

CGingter avatar CGingter commented on July 21, 2024

There is no reason why the controller should not have a init.py but teaser behaves really weird in Python 2.7. This looks like a lot of research/work so i would propose to give it to @yGoerguelue because i got only one week left.

from teaser.

PRemmen avatar PRemmen commented on July 21, 2024

Please specify what you mean by "behaves really weird"? Because all functions that are implemented in the unit tests (almost all containend in Logic) run in python 2.7 and python 3.4!

from teaser.

CGingter avatar CGingter commented on July 21, 2024

Ok so for example the load building function lets you only select .xml files which is nowhere specified. When you load a building the paint function gets called infinite times and the program gets shut down. That was the only thing i tested so far but it is really strange.

from teaser.

CGingter avatar CGingter commented on July 21, 2024

Oh wait he just starts an older version...which is still weird...let me look into it!

from teaser.

PRemmen avatar PRemmen commented on July 21, 2024

Ok so for example the load building function lets you only select .xml files which is nowhere specified. When you load a building the paint function gets called infinite times and the program gets shut down. That was the only thing i tested so far but it is really strange.

I don't understand this. what "paint" function do you mean? And how can I select a .xml file that is nowhere defined? Maybe like a hardcoded path somewhere?
Update:
Ahh understand the .XML problem now, still not thinkng that this is a python 2.7 / 3.4 problem

from teaser.

CGingter avatar CGingter commented on July 21, 2024

That's not what i meant. For some reason if i select the python 2.7 interpreter it uses an old teaser 4 version. In this version you could only select .xml files in the file dialog when you clicked on Load Building and also some newer buttons are missing. The paint function is a PYQT function that draws all the controls and it breaks when trying to fill in the zone lists, but this is of no concern since it is most likely just a bug in this old version.

So the question is why does it load an old version and not the current one?

from teaser.

PRemmen avatar PRemmen commented on July 21, 2024

Maybe you need to update you installation of teaser with pip for 2.7

from teaser.

CGingter avatar CGingter commented on July 21, 2024

Got it figured out...well actually i just deleted my workspace and made a new one but hey whatever works...

Still getting some errors, can hopefully solve it today!

from teaser.

yGoerguelue avatar yGoerguelue commented on July 21, 2024

@MichaMans I can start the GUI ordinary under Python 2.7. Maybe you don't have the package(PyQt4) that is needed. Look if you can find the folder PyQt4 in "C:\Python27\Lib\site-packages".

from teaser.

yGoerguelue avatar yGoerguelue commented on July 21, 2024

@PRemmen Strange things are happening, if i start the GUI in branch (issue57...) with python27 and load a Project into it. Everything works, but if I do a double click on the zone element and nothing happens. If I start the GUI in another branch like issue47 or issue41 everything works fine.

from teaser.

MichaMans avatar MichaMans commented on July 21, 2024

So i looked into the development branch. its not starting with python 2.7. I think a coding decleration would help here (since i get and ASCII error in a commented block). like first line

# -*- coding: utf-8 -*-

But i'm not sure if this will help or if this is a right solution.

from teaser.

yGoerguelue avatar yGoerguelue commented on July 21, 2024

That's the problem with the German language, we can't use german characters like ß,ö,ä, ü. For now we shouldn't use german characters. I will fix it tomorrow and search for an alternative solution.

from teaser.

CGingter avatar CGingter commented on July 21, 2024

To circumvent the ASCII error you can use the html escaped string instead of the character. You can search in the MainUI class for & # 1 7 6; which is °. ß for example would be & # 2 2 3;. Good luck!

Just write it together and ignore the spaces between & and ; because else this website converts it to the symbol. Whoops!

from teaser.

yGoerguelue avatar yGoerguelue commented on July 21, 2024

To do

  • Language differences and workarounds

from teaser.

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.