Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/globos.py
Commit message (Collapse)AuthorAgeFilesLines
* Get the right text color at startGonzalo Odiard2013-10-231-3/+2
| | | | | | | Since the change in the way we draw the text, color initialization was wrong. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 and pyflakes fixesGonzalo Odiard2013-10-231-8/+1
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Avoid changing edition_mode in a globe if not neededGonzalo Odiard2013-10-231-1/+7
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Copy textview window instead of use pango cairo text toy api - SL #4607Gonzalo Odiard2013-10-231-57/+85
| | | | | | | | | | Cairo toy text api have problems, and can't render complex sripts. Changed the way we draw the text in not edition mode to solve this issue. This patch also move the textview, from be in the Box, to the globe, then now we have one textview for ewvery globe instead of one by box. This simplify tghe code. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Better default sizes for globesGonzalo Odiard2013-04-121-5/+5
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 fixesGonzalo Odiard2013-04-121-39/+41
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Manage the case of Globes without text (Images)Gonzalo Odiard2013-04-121-10/+21
| | | | | | | The class Imagen is a Globo, but with texto = None. This patch contemplate all the cases where text can be None. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use a sane default size for globe creationGonzalo Odiard2013-04-111-9/+15
| | | | | | | The globe size is independent of the resolution using graphics.style constants. The default font size is 10 instead of 12 now. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Set the screen resoulution to get the right font size in the xo - SL #3436Gonzalo Odiard2013-04-111-5/+14
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Fix movement of textview when the globe is resizedGonzalo Odiard2013-04-111-11/+4
| | | | | | | | | After the change to use a textview to edit text, this was a pending issue. Is solved using the HBox around the text view to calculate the real size. The x, y coordinates in the class CuadroTexto were removed, using the values in the parent Globe. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Using textview for edit textsAgustin Zubiaga2013-01-141-370/+196
| | | | | | | | | | There are one problem not solved yet, the textview, at times, takes more vertical space than requested the first time is displayed, and enlarge the globe. Clicking again in the text view, resizes it to the right size. Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org> Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Partial port to Gtk3Gonzalo Odiard2012-12-061-16/+10
| | | | | Signed-off-by: Ignacio Rodriguez <nachoel01@gmail.com> Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Change size in the handlesGonzalo Odiard2012-04-231-16/+15
| | | | | | | Enlarge to be better with touch devices Also remove unused imports Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Use FontComboGonzalo Odiard2012-04-201-12/+21
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Show the controls in the rectangle with dashes like in the other globes.Gonzalo Odiard2012-03-121-0/+9
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Add a title rectangle globeGonzalo Odiard2012-03-121-2/+9
| | | | | | | The title globe is added when the activity starts with a empty page, and can't be deleted. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Pep8 fixes in globos.pyGonzalo Odiard2012-03-091-39/+32
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Implament rotation of movement linesGonzalo Odiard2012-03-091-3/+52
| | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
* Add one option to add movement linesGonzalo Odiard2012-01-091-17/+19
| | | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Agustin Zubiaga <aguszs97@gmail.com>
* Fix encodingGonzalo Odiard2011-08-081-4/+4
| | | | Gonzalo Odiard <gonzalo@laptop.org>
* Change the display of the circle and square controls in the globes.Gonzalo Odiard2010-11-281-1/+13
| | | | | Now trace a line white and a dashed line in black, to see them if the image have a white background.
* enable change size of globe from all the sides / show cursorGonzalo Odiard2010-11-231-2/+37
|
* remove code what can be replaced by code inherited / comment printsGonzalo Odiard2010-11-211-17/+4
|
* remove or comment loggingGonzalo Odiard2010-11-211-8/+0
|
* set dashed lines to control linesGonzalo Odiard2010-11-211-0/+5
|
* avoid inline commentsGonzalo Odiard2010-11-211-35/+35
|
* Now the cloud is drawn with cairo.Gonzalo Odiard2010-11-131-65/+59
| | | | Remove the png used previously to draw Nube and Grito
* make globos.py pep8 complaintGonzalo Odiard2010-11-071-861/+1015
| | | | change grito draw to cairo
* Agrego i18n y traducciones a sp y frGonzalo Odiard2010-08-161-5/+9
| | | | Traducciones fr provistas por Samy Boutayeb (OLPC France) <samy.boutayeb@olpc-france.org>
*