Changeset 109


Ignore:
Timestamp:
04/04/09 22:05:49 (4 years ago)
Author:
riverplatense
Message:

Ingreso planillas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sancabase.py

    r105 r109  
    105105        menuGestiones.AppendSeparator() 
    106106        menuGestiones.Append(-1, u'&Abrir', u'Abre un documento existente') 
     107        menuPlanillas = wx.Menu() 
     108        menuBar.Append(menuPlanillas, u'&Planillas') 
     109        temario = menuPlanillas.Append(-1, u'&Temario', u'Genera una planilla de temario vacía') 
    107110        menuAyuda = wx.Menu() 
    108111        menuBar.Append(menuAyuda, u'Ay&uda') 
     
    142145        self.Bind(wx.EVT_MENU, self.OnAbrGastProy, abrir_gastos_proy) 
    143146        self.Bind(wx.EVT_MENU, self.OnNuevaGestion, nuevagestion) 
     147        self.Bind(wx.EVT_MENU, self.OnTemario, temario) 
    144148        self.Bind(wx.EVT_MENU, self.OnAbout, about) 
    145149 
     
    25962600        ventana.Show(True) 
    25972601 
     2602# Temario 
     2603    def OnTemario(self, evt): 
     2604        #f = open('./html/temario.html', 'w') 
     2605        #f.write('<html>\n') 
     2606        #f.write('<head>\n') 
     2607        #f.write('<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n') 
     2608        #f.write('<title>Impresión de temario</title>\n') 
     2609        #f.write('<body>\n') 
     2610        #f.write('<font size="2">') 
     2611        #f.write('<h2>Temario del mes de: </h2>\n') 
     2612        #f.write('<h3>Curso:</h3>\n') 
     2613        #f.write('<h3>Instructor:</h4>\n') 
     2614        #f.write('<center>\n') 
     2615        #f.write('<table width="609" border="2" cellspacing="0">\n' ) 
     2616        #f.write('<th>Día</th><th>Tema de la clase</th><th>Firma</th>') 
     2617        #for n in range (22): 
     2618            #f.write('<tr height="31"><td height="31" width="10%" border="1"> </td><td height="31" width="70%" border="1"> </td><td height="31" width="20%" border="1"> </td></tr>') 
     2619        #f.write('</table>') 
     2620        #f.close() 
     2621        ##Una vez creado el html con el listado lo muestro en un frame como vista previa 
     2622        #import wx.html as htm 
     2623        #self.frame = wx.Frame(self, -1, u'Vista previa de la impresión', (20, 20), (800, 600)) 
     2624        #self.panel = wx.Panel(self.frame, -1) 
     2625        #self.html = htm.HtmlWindow(self.panel, -1, (5,5), (790, 500)) 
     2626        #self.html.LoadPage('./html/temario.html') 
     2627        #self.printer = htm.HtmlEasyPrinting() 
     2628        #BtnImpresion = wx.Button(self.panel, wx.ID_PRINT, pos=(520, 540)) 
     2629        #BtnCancelarImp = wx.Button(self.panel, wx.ID_CANCEL, pos=(620, 540)) 
     2630        #self.Bind(wx.EVT_BUTTON, self.OnImp, BtnImpresion) 
     2631        #self.Bind(wx.EVT_BUTTON, self.OnCanc, BtnCancelarImp) 
     2632        #self.frame.Show() 
     2633        from reportlab.lib.pagesizes import legal 
     2634        import temario 
     2635        c = temario.canvas.Canvas("./planillas/temario.pdf", pagesize=legal) 
     2636        temario.temarios(c) 
     2637        c.showPage() 
     2638        c.save() 
     2639         
    25982640         
    25992641# Acerca de 
Note: See TracChangeset for help on using the changeset viewer.