TristanSld

module1.py

Jan 21st, 2014
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2.  
  3. import calendar
  4. import datetime
  5.  
  6. import pygtk
  7. pygtk.require('2.0')
  8. import gtk, pango
  9. import time
  10. import project
  11. #import patient
  12.  
  13. class AppointmentWindow:
  14.     def __init__(self, i, j, now, current_doctor):
  15.         self.menu = gtk.Menu()
  16.         menuitem1 = gtk.MenuItem("Dodaj")
  17.         #(...)
  18.         menuitem1.connect("activate", self.menuitem4_response)
  19.         self.menu.append(menuitem1)
  20.         self.lab = patient.Appointment()
  21.         self.button = gtk.Button(self.lab.get_label(self.now, self.j, self.current_doctor))
  22.         self.button.connect("clicked", self.menu_display)
  23.  
  24.     def menuitem4_response(self, widget):
  25.         project.cale.reload()
RAW Paste Data