TristanSld

project.py

Jan 21st, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.98 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. from array import *
  3. import calendar
  4. import datetime
  5. import pygtk
  6. pygtk.require('2.0')
  7. import gtk, pango
  8. import time
  9. import gobject
  10. import threading, thread
  11. import module1
  12.  
  13.  
  14.  
  15. class MainWindow:
  16.  
  17.     #app = module1.Appointment()
  18.  
  19.     def reload(self):
  20.         #(...)
  21.         print 'hello'
  22.  
  23.     def create(self):
  24.         self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
  25.         self.date = None
  26.         window = gtk.Window(gtk.WINDOW_TOPLEVEL)
  27.         self.window.set_title("Kalendarz")
  28.         self.window.set_border_width(5)
  29.         self.window.connect("destroy", lambda x: gtk.main_quit())
  30.  
  31.         #(...)
  32.         self.button_array[i][j] = module1.AppointmentWindow(i,j, now, self.menu.current_doctor)
  33.         #(...)
  34.  
  35. cale = MainWindow()
  36.  
  37. def main():
  38.     gtk.main()
  39.     cale.app.db.close()
  40.     return 0
  41.  
  42.  
  43. #if __name__ == "__main__":
  44.     #global cale
  45.     #cale = MainWindow()
  46.     #cale.create()
  47.     #print "zu"
  48.     #main()
  49.     #print "ok"
Advertisement
Add Comment
Please, Sign In to add comment