background preloader

ZetCode, tutorials for programmers

ZetCode, tutorials for programmers

Java Forums at the Big Moose Saloon Associate Certification (OCAJP 8) Passed the OCAJP 8 with 86% 8 hours ago 0 replies Threads and Synchronization Non-blocking Queue using JCTools 18 hours ago 0 replies Programmer Certification (OCPJP) Beyond Classes Question number 12 2 days ago 1 reply Trying to purchase 1Z0-830 exam voucher in Japan 4 days ago 10 replies OCA study guide, assessment test - question 14 6 days ago 11 replies HTML Pages with CSS and JavaScript Storing session Id with javacript 1 week ago 1 reply Errata OCP 17 Sybex 829 Developer Study Guide 2 weeks ago 6 replies Programming Diversions Advent of Code 2025

Blog personal de Pablo Tilli Algorithm Archive · GitBook VPython TODO Cómo hacer Widgets con PyGTK y Cairo. Éste tutorial está basado originalmente en ésta obra extraí­da de www.pygtk.org, no es una tradudcción literal, y extiende su contenido. NOTA: Para poder ejecutar el código vamos a necesitar la versión 2.8 de pygtk y pycairo. Primeros Pasos Lo primero que debemos hacer es importar las librerias que vamos a necesitar: import gtkimport gtk.gdkimport math Lo siguiente será; crear una nueva clase, que heredará de la clase gtk.DrawingArea (área de dibujado) que es el area que utilizaremos para capturar los eventos y dibujar en ella el resultado de las funciones que utilicemos en cairo, añadiremos también un constructor por defecto: class SemiCirculo(gtk.DrawingArea): def __init__(self): gtk.DrawingArea. class SemiCirculo(gtk.DrawingArea): def __init__(self): gtk.DrawingArea. Prueba Inicial El fichero fuente deberia éstar tal que asi: ejemplo_1.py Lo ejecutamos, y obtenemos el siguiente resultado: [arc@synaptia:~]$ python2.4 ejemplo_1.py Dibujando Creando eventos nuevos #Desplazamiento self.desp = 0

Posts | p1xelcoder | Oliver's website What to do after you get promoted into a leadership position should be a trivial question to answer, but in my experience the opposite is true. In fact sometimes it seems to me that leadership is some kind of taboo topic in the games industry. Making games is supposed to be creative and fun and people would rather not talk about a ‘boring’ topic like leadership, but everyone who has had a bad supervisor at some point will agree that lack of leadership skills can be incredibly harmful to team morale and therefore to the game development process. That’s why, when I was first promoted into a leadership position, I set myself the goal to be just like the awesome supervisors I had in the past. But what made these people a great boss? I had no idea, but I assumed I would figure it out myself along the way. After learning more about the theory and practice of leadership I realized that I was unprepared for this role and I’m not the only one with this experience. What is leadership anyway?

Creating a GNOME Web Browser with Python By Patrick Wagstrom August 18th, 2004 Overview 1. Introduction2. 1. This tutorial will show you how to build a simple web browser for the GNOME desktop using the Python programming language. For this tutorial you're going to need the following tools. Python version 2.2 or above PyGTK- GTK+ bindings for Python Mozilla - you'll need to make sure the development libraries are also installed on your system. 2. The first task that we'll need to do is to start with Glade. Figure 1: Glade startup window Click on the new and tell it that you want to start a new GNOME project. Figure 2: Select Gnome application window This will bring up a simple window that says glade-2 for the title. Figure 3: Change toolbar size from 3 to 6 The next step is to populate the toolbar with new buttons. Figure 4: Add two buttons and a text entry widget The next step is to convert the buttons we've just created to stock buttons. Figure 5: Change the buttons to the stock buttons Figure 7: Our final window in Glade 3. #!

DocOnDev Instalación de Python/Ninja-IDE y Librerías Extras | Curiosidades de la Tecnología Hola a todos, estoy de regreso solo por un momento, la publicación actual es para proporcionar las ligas para obtener el software necesario para realizar la instalación de Python sobre Windows así como algunos complementos. Los procesos de instalación no los compartiré por completo, para todos los programas es igual, además si lees esto espero ya seas un usuario avanzado o si no lo eres y tienes dudas déjalas en un comentario. Primero debemos realizar la instalación de Python, yo recomiendo la versión 2.7.3 que es la que uso y me es compatible con mi IDE favorito que más adelante te enseñaré a instalar. La instalación se realiza normal, deja como directorio de destino el Disco Local C [Particion Principal] que la cual al terminar la instalación debería de aparecer una carpeta Python27. Segundo ahora comenzamos a realizar la instalación de Ninja-IDE un Entorno de Desarrollo para Python muy bueno con el cual me he encariñado mucho, si no deseas usarlo puedes omitir estos pasos. print "Hola"

Related: