Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from array import *
- import calendar
- import datetime
- import pygtk
- pygtk.require('2.0')
- import gtk, pango
- import time
- import gobject
- import threading, thread
- import module1
- class MainWindow:
- #app = module1.Appointment()
- def reload(self):
- #(...)
- print 'hello'
- def create(self):
- self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- self.date = None
- window = gtk.Window(gtk.WINDOW_TOPLEVEL)
- self.window.set_title("Kalendarz")
- self.window.set_border_width(5)
- self.window.connect("destroy", lambda x: gtk.main_quit())
- #(...)
- self.button_array[i][j] = module1.AppointmentWindow(i,j, now, self.menu.current_doctor)
- #(...)
- cale = MainWindow()
- def main():
- gtk.main()
- cale.app.db.close()
- return 0
- #if __name__ == "__main__":
- #global cale
- #cale = MainWindow()
- #cale.create()
- #print "zu"
- #main()
- #print "ok"
Advertisement
Add Comment
Please, Sign In to add comment