Scripts posted recently by lovelace in Kelpi

1- 10 of 18.

Simple windows form example

to c c# by lovelace

[assembly: System.Reflection.AssemblyVersion("1.0.*")]
namespace MyNamespace
{
    public class MyForm : System.Windows.Forms.Form
    {

Setup and maintain a single status and hide parts of it as required

to abap sap by lovelace

data: BEGIN OF MTAB_UCOMM_EXCLUDE OCCURS 0,
VALUE(4) TYPE C,
END OF MTAB_UCOMM.
AT USER-COMMAND.
PERFORM SET_PF_STATUS.

Un ejemplo de boo

to python boo .net gtk by lovelace

# http://dserpell.blogspot.com/feeds/posts/default?alt=rss
import Gtk from "gtk-sharp"
def pres():
 print "Hola"
def salir():

El ejemplo de boo en Python

to python gtk by lovelace

# http://dserpell.blogspot.com/feeds/posts/default?alt=rss
import gtk
from gtk import *
def pres(o):
        print "Hola"

Python interactive shell

to python django by lovelace

# python manage.py shell

# http://www.djangoproject.com/documentation/tutorial01/

>>> from mysite.polls.models import Poll, Choice

Django unicode management

to python django unicode by lovelace

# http://www.djangoproject.com/documentation/tutorial01/

class Poll(models.Model):
    # ...
    def __unicode__(self):

Example of customization of a representation method

to python django by lovelace

# http://www.djangoproject.com/documentation/tutorial01/

import datetime
# ...
class Poll(models.Model):

Django database API

to python django by lovelace

# http://www.djangoproject.com/documentation/tutorial01/

# Import the model classes we just wrote.
>>> from mysite.polls.models import Poll, Choice

Sql sentences for data model in django

to sql django by lovelace

-- http://www.djangoproject.com/documentation/tutorial01/

BEGIN;
CREATE TABLE "polls_poll" (
    "id" serial NOT NULL PRIMARY KEY,

Data model example in Django

to python django by lovelace

# http://www.djangoproject.com/documentation/tutorial01/

from django.db import models

class Poll(models.Model):
hits counter