Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~64.6K People Reached
Favorite Tags
Member Avatar for linuxoidoz

Hi, What's the best and easiest way to make a table and print it on a printer? 1. I tried QTextEdit + QTextTable but it's a lot of work to move/set a cursor for each cell first and then add text to each cell 2. I also tried a QTableWidget …

Member Avatar for britanicus
0
1,000
Member Avatar for linuxoidoz

For example I have a non-ordered list of values [10, 20, 50, 200, 100, 300, 250, 150] I have this code which returns the next greater value: [CODE] def GetNextHighTemp(self, temp, templist): target = int(temp) list = [] for t in templist: if t != "": list.append(int(t)) return str(min((abs(target - …

Member Avatar for linuxoidoz
0
764
Member Avatar for linuxoidoz

Hi, I'm puzzled I can't display unicode characters higher than u"\u2094". I can display all below and including u"\u2094" but nothing starting from u"\u2095" and up. How could that be? e.g. [CODE] self.label = QLabel(unichr(int('2094', 16)) + unichr(int('2098', 16))) [/CODE]

Member Avatar for linuxoidoz
0
2K
Member Avatar for linuxoidoz

Hello, What's the right way to open and close dialog windows multiple times? At the moment I instantiate a dialog window on a clicked button signal, then close it with self.close() but when I open it again Python crashes. So I can open the dialog only once. How can I …

Member Avatar for raptr_dflo
0
16K
Member Avatar for linuxoidoz

I need to show a '&' symbol on a button and I don't understand this - how come [CODE] self.l1 = QLabel("&", self) self.l2 = QLabel(unichr(int("0026", 16)), self) [/CODE] both of these show it on a label but [CODE] self.b1 = QPushButton("&", self) self.b2 = QPushButton(unichr(int("0026", 16)), self) [/CODE] none …

Member Avatar for -ordi-
0
2K
Member Avatar for linuxoidoz

Hi, I have a window and open another window with a button. Then, when the other window is closed I need to update some fields in the first one. Here's what I currently do: MainWindow: [code=python] ... self.connect(self.actionCustomFactors, SIGNAL("triggered()"), self.OnCustomFactorsTriggered) ... def OnCustomFactorsTriggered(self): self.customWin = CustomWindow(self.factorsFile) self.customWin.show() self.connect(self.customWin, SIGNAL("destroyed()"), self.OnCustomWinClosed) …

Member Avatar for linuxoidoz
0
13K
Member Avatar for linuxoidoz

Hi, How can I convert a 64-bit unicode string into a text string? I'm converting ASCII characters for example like this [CODE]str = unichr(int('00A9', 16))[/CODE] But how can I convert unicode 'U2082' or any other character beyong the ASCII range? Thank you.

Member Avatar for Gribouillis
0
189
Member Avatar for linuxoidoz

Hi, I'm trying to make a custom search form in Concrete5 CMS. Without any help on their forums, I thought I could make a workaround for now. From what I understand, I can make a search form with an input field <input name='query' value='' /> which works absolutely fine, and …

0
69
Member Avatar for linuxoidoz

Hi, What's the easiest way to check whether an item is in a list and then get to that element and do something with it? So far I can think of [CODE] if x in List: for x in List: if x = y: do something [/CODE] Thank you.

Member Avatar for linuxoidoz
0
31K
Member Avatar for linuxoidoz

Hi, I'm trying to save elementtree back into an xml file and it bahaves really strange. I have a function which takes some QTextEdit text arguments (obviously QStrings) and if I save a node property as a QString, it saves the file fine, but if I try to save a …

Member Avatar for jcao219
0
132