Esempio n. 1
0
 def text(self):
     """This method returns a string based representation of the QR code.
     The data modules are represented by 1's and the background modules are
     represented by 0's. The main purpose of this method is to allow a user
     to write their own renderer.
     
     Example:
         >>> code = pyqrcode.create('Example')
         >>> text = code.text()
         >>> print(text)
     """
     return builder._text(self.code)
Esempio n. 2
0
 def text(self):
     """This method returns a string based representation of the QR code.
     The data modules are represented by 1's and the background modules are
     represented by 0's. The main purpose of this method is to allow a user
     to write their own renderer.
     
     Example:
         >>> code = pyqrcode.create('Example')
         >>> text = code.text()
         >>> print(text)
     """
     return builder._text(self.code)
Esempio n. 3
0
    def text(self, quiet_zone=4):
        """本实例方法返回二维码的一种字符串表现形式。
        数据块都用1来表示,背景色块都用0表示。
        这种文本形式的主要目的是扮演了用户自己建立渲染器的起始点。

        其中 *quiet_zone* 参数是设置无噪点区域宽。
        根据二维码标准参数值应该是4个数据块。保留可设置是因为在许多应用程序中
        不需要这样一种无噪点区域宽。

        Examples:
            >>> code = pyqrcode.create('Example')
            >>> text = code.text()
            >>> print(text)
        """
        return builder._text(self.code, quiet_zone)
Esempio n. 4
0
    def text(self, quiet_zone=4):
        """This method returns a string based representation of the QR code.
        The data modules are represented by 1's and the background modules are
        represented by 0's. The main purpose of this method is to act a
        starting point for users to create their own renderers.

        The *quiet_zone* parameter sets how wide the quiet zone around the code
        should be. According to the standard this should be 4 modules. It is
        left settable because such a wide quiet zone is unnecessary in many
        applications.

        Example:
            >>> code = pyqrcode.create('Example')
            >>> text = code.text()
            >>> print(text)
        """
        return builder._text(self.code, quiet_zone)
Esempio n. 5
0
    def text(self, quiet_zone=4):
        """This method returns a string based representation of the QR code.
        The data modules are represented by 1's and the background modules are
        represented by 0's. The main purpose of this method is to allow a user
        to write their own renderer.

        The *quiet_zone* parameter sets how wide the quiet zone around the code
        should be. According to the standard this should be 4 modules. It is
        left settable because such a wide quiet zone is unnecessary in many
        applications.

        Example:
            >>> code = pyqrcode.create('Example')
            >>> text = code.text()
            >>> print(text)
        """
        return builder._text(self.code, quiet_zone)