Re: Drawing QRcode

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Vaibhav Gajengi wrote:
>
> I tried using that but its not giving me the result.
> Can you explain me which info should i give for size of widget ?
> I tried with by giving the parameters as below. but i am not getting
> the exact use of this parameters.
>
> Below is the code part 
> qrw = QrCodeWidget(item,barHeight=10*mm,barWidth=10*mm,barBorder=6)
> Can you explain the above paramters ?

I don't think you should specify ANYTHING in the QrCodeWidget
constructor, because you don't know what the parameters do.  You can go
look at the code, if you want, but I don't think it will help.

Just let the widget generate the code in whatever size makes it
comfortable.  For the sample I gave, it ends up being just over one inch
square.

Then, resize it to your desired size when you place it into a Drawing. 
That's the canonical way to use this widget.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.