I'm trying to get my application to scan, create a .pdf, and then save
it in a patient's folder. I found python-imaging-sane but I can't get
things to work correctly. Here is what's happening at the command
prompt:
import sane
sane.init()
(16777235, 1, 0, 19)
print sane.get_devices()
[('canondr:
On Apr 25, 2:44 pm, "Gabriel Ibanez" <[EMAIL PROTECTED]> wrote:
> Hi !
>
> Other idea (old style school):
>
> def printing():
>f=open("lpt1", "w")
>f.write("\nSomething to print\f")
>f.close()
>
> Cheers..
>
> - Ibanez -
>
I haven't found a way from within python to print f. I'm sure
I'm a beginner searching for an easy way to print the contents of a
text control. So far I've come up with the following(difficulties):
1) using wxPython
-convert to HTML and then print (I don't know anything about
HTML)
-use wx.Printout (Seems complicated; may be beyond my abilities)
Thanks for the help everyone. I ended up with the following:
def OBweeks(ptID):
qry = 'SELECT short_des FROM problems WHERE patient_ID = %s;' %
(ptID)
results = EMR_utilities.getAllData(qry)
for items in results:
r = re.search('\d\d\d\d-\d\d-\d\d', str(items))
I'm trying to get the difference in dates using the time module rather
than datetime because I need to use strptime() to convert a date and
then find out how many weeks and days until that date. I'm a beginner
so any help would be appreciated. Here is the code:
def OBweeks(ptID):
qry = 'SEL
Thanks everyone. I learned several things on this one. I ended up
using the .replace() method and got the results I wanted.
Thanks again,
Michael Barron
--
http://mail.python.org/mailman/listinfo/python-list
I'm having difficulty getting the following code to work. All I want
to do is remove the '0:00:00' from the end of each line. Here is part
of the original file:
3,3,"Dyspepsia NOS",9/12/2003 0:00:00
4,3,"OA of lower leg",9/12/2003 0:00:00
5,4,"Cholera NOS",9/12/2003 0:00:00
6,4,"Open wound of ea
Mike and Alan, thanks very much, working fine now. I'll review the
classes references too.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to programming and new to Python; namespace issues are getting
the best of me. Can someone help me with the following:
import wx
import sys
sys.path.append('~/PyPrograms/EMRGUI')
import Selectable
class MyApp(wx.App):
def __init__(self):
wx.App.__init__(self)
frame =
Newbie with problem. I'm trying to build a multicolumn list control
with wxPython and am having difficulty getting the data from my query
into each column. I'm getting the following error:
Traceback (most recent call last):
File "/home/mb/PyPrograms/EMRGUI/Selectable.py", line 115, in
Rep
Thanks, seems to be fixed with importing MySQLdb, menus, EMR_main, etc
in the Name_find module. Is there a better way to do things? I
thought I was avoiding using global variables by putting the shared
ones in their own module.
Thanks for the help.
Mike
--
http://mail.python.org/mailman/listi
I'm getting an error msg I don't understand, "global name EMR_globals
is not defined", and could use some help.
I've separated the application I'm building into several modules. One
of the modules holds variables I need to pass from one module to
another and is called 'EMR_globals'. Several othe
it shouldn't be hard to
remove. Mensanator, thanks a lot for your help. This has been quite
a lot to digest--huge leap in my understanding of Python.
Michael Barron
On Oct 31, 12:32 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Oct 30, 7:39?pm, barronmo &
I didn't know "result" was a list! Can all that info be stored in a
list? How do the columns work? I was curious to see what the data
looked like but I can't seem to print "result" from the prompt. Do
variables used inside functions live or die once the function
executes? If they die, how do I
Thanks to both of you for the help. I made several of the changes you
suggested and am getting the results in the format I want, eg:
0 387 John Smith
1 453 Jane Smith
2 975 Joe Smithton
My plan at this point is, in addition to printing the results of the
query, to create a list with a matc
I'm new to programming and even newer to Python and would be grateful
for some help on what has been a tough problem for me. The project I
am working on is an electronic medical record using MySQL/Python. I'm
currrently working on a module that looks up a patient's name based on
input from the us
16 matches
Mail list logo