Questions tagged as 'python'

1
answer

Error installing goslate API for python on Windows

I'm getting this result when I try to install the goslate API, which is a more optimized Google Api to handle translations and more. C:\Users\chris\Documents\PyCharm Projects\Integrador\goslate-1.5.1>py setup.py install Traceback (most rece...
asked by 13.01.2016 / 15:43
0
answers

How to enable vertical scrollbar in qwebview in python?

I need to enable scrollbar in a widget qwebview , and put the automatic scrolling, but I did not find any information on how to do this in python. I tried to do this: self.qwebview.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)...
asked by 05.01.2016 / 17:30
1
answer

As I call a method of a class of type QtGui.QMainWindow, inside another class of type QObject in python

I have a class: class MyWindow2Class(QtGui.QMainWindow, form2_class): Inside the init of it I have this code snippet: self.scr = ScriptManager(self) self.qwebview.page().mainFrame().addToJavaScriptWindowObject("obj", self.scr) self...
asked by 03.01.2016 / 22:17
1
answer

Show mailing list with Tkinter

I'm running a Tkinter program that relies on an email box. I intend, in a Tkinter window to show a list of emails based on a directory with .txt files (which are emails). I've been looking for a command to create a box and show the txt na...
asked by 10.01.2016 / 02:57
0
answers

Django error: Invalid block tag: expected 'endblock'

In the development environment it works normally, already on the production server I get the following error: Invalid block tag: 'ultimos_produtos', expected 'endblock' Here is the snippet of code: {% extends "base.html" %} {% load shop_t...
asked by 24.11.2015 / 16:04
1
answer

Error "Can not update identity column 'order'"

For an old project need, the developer of the time created a field in the table that is not a primary key but is self-incrementing, but django returns an error because it can not update that field. The use of Django's AutoField type is intended...
asked by 13.11.2015 / 02:21
0
answers

Problem with python tray writing: 'TypeError: not all arguments converted during string formatting'

How can I resolve this? There's the code. '' looks like this: [(((2,), (3,), (2,), (2, 2), (2,)), ((2,), (1, 2), (2,), (3,), (3,))), [['?', '?', '?', '?', '?'], ['?', '?', '?', '?', '?'], ['?', '?', '?', '?', '?'], ['?', '?', '?', '?', '?'], [...
asked by 08.12.2015 / 13:05
1
answer

Using python and django, problem with querys

I'm using Python with the Django framework. This method should return a resulting query, to send e-mail to the corresponding e-mails from the database. However, the method works for some cases and for others it does not. from django.db.models...
asked by 14.10.2015 / 21:35
0
answers

How to read a .kar file in python?

I'm trying to read a .kar file and then print the letters on the screen, how would I do it in Python3? I tried using Karapython, however it does not work in Python3, any help?     
asked by 24.09.2015 / 02:50
1
answer

Facebook API Python

Can I list ALL the groups of a friend on the face? Type show what groups it is? I found this code but it's not what I want, it just shows my friends: import urllib2 import json url = 'https://graph.facebook.com/me/friends?access_token=TOKEN...
asked by 23.10.2015 / 16:33