Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30430

How to pass FILE *

From xDog Walker <thudfoo@gmail.com>
Subject How to pass FILE *
Date 2012-09-28 14:55 -0700
Newsgroups comp.lang.python
Message-ID <mailman.1585.1348869366.27098.python-list@python.org> (permalink)

Show all headers | View raw


The function I am trying to call wants a FILE *:

dlg_progressbox(const char *title,
		const char *cprompt,
		int height,
		int width,
		int pauseopt,
		FILE *fp)

I can open the file to be referenced:

fp = os.fdopen(self.pipefds[0], 'r')

Every thing I've tried ends with ctypes raising a TypeError.

--
Yonder nor sorghum stenches shut ladle gulls stopper torque wet
strainers.

-------------------------------------------------------

-- 
Yonder nor sorghum stenches shut ladle gulls stopper torque wet 
strainers.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

How to pass FILE * xDog Walker <thudfoo@gmail.com> - 2012-09-28 14:55 -0700

csiph-web