Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Ordering a list of dict
Post: RE: Ordering a list of dict
Hello,
Thanks a lot, that worked. And thanks for the nice explanation :) |
|
giu88 |
General Coding Help |
2 |
2,742 |
Nov-05-2018, 02:12 PM |
|
|
Thread: Ordering a list of dict
Post: Ordering a list of dict
Hello everybody,
I have a list of dictionaries i need to perform some actions on. Following the sample code:
j = json.loads(value)
#list of dict is unordered here
self.Action(j)
#list of dict is un... |
|
giu88 |
General Coding Help |
2 |
2,742 |
Nov-05-2018, 01:48 PM |
|
|
Thread: StaticBitmap: unexpected behaviour
Post: StaticBitmap: unexpected behaviour
Hello everybody,
I am having a little issue with wx.StaticBitmap. I made a program using WxPython where i have several gadgets. At some point, i need to
have a wx.StaticBitmap next to a wx.StaticTe... |
|
giu88 |
GUI |
0 |
2,084 |
Oct-06-2018, 10:09 AM |
|
|
Thread: Error while importing my own package
Post: RE: Error while importing my own package
Ok that worked. I maanually added PYTHONPATH in the environmental variables and it's working. Then i had to change a few
"imports" in my code (needed to add the right folder).
Thanks |
|
giu88 |
General Coding Help |
4 |
2,988 |
Sep-19-2018, 12:18 PM |
|
|
Thread: Error while importing my own package
Post: RE: Error while importing my own package
(Sep-18-2018, 02:24 PM)gontajones Wrote: You should add Folder1/ to your PYTHONPATH:
export PYTHONPATH=$PYTHONPATH:/home/username/Main Folder2/Folder1Or even all the content of Main Folder2/...
expo... |
|
giu88 |
General Coding Help |
4 |
2,988 |
Sep-19-2018, 06:55 AM |
|
|
Thread: Error while importing my own package
Post: Error while importing my own package
Hello everybody,
I am trying to make and call my own package but something is not working. This is how my code is structured:
Main Folder1
Main Folder2Folder1SubFolder (this is what i want to expor... |
|
giu88 |
General Coding Help |
4 |
2,988 |
Sep-18-2018, 02:13 PM |
|
|
Thread: Using static methods for library?
Post: RE: Using static methods for library?
Perfect, that looks like what i was looking for. Thanks |
|
giu88 |
General Coding Help |
4 |
2,938 |
Sep-12-2018, 07:52 AM |
|
|
Thread: Using static methods for library?
Post: RE: Using static methods for library?
No, i do not need to mantain any state. I need an algorithm.py to have some algorithms that i can call from another file. Would you mind giving a little example on how you would structure the algorith... |
|
giu88 |
General Coding Help |
4 |
2,938 |
Sep-12-2018, 07:14 AM |
|
|
Thread: Using static methods for library?
Post: Using static methods for library?
Hello everybody,
I need to create a library of algorithms. I do no want to instanciate an object of the class everytime, i just would like to call the algorithm.
I.e. My class is called "algorithm... |
|
giu88 |
General Coding Help |
4 |
2,938 |
Sep-12-2018, 06:55 AM |
|
|
Thread: Generate PDF reports
Post: RE: Generate PDF reports
(Aug-26-2018, 01:07 PM)Gribouillis Wrote: I vote for latex (perhaps pylatex, which I don't know). It is much easier to master than reportlab, and also more flexible. You could perhaps use latex temp... |
|
giu88 |
General Coding Help |
7 |
9,215 |
Aug-26-2018, 02:00 PM |
|
|
Thread: Generate PDF reports
Post: RE: Generate PDF reports
I did little more research. There are actually two versions of the software: Report Lab open source and ReportLab Plus.
The first one, Report Lab Open Source seems to be completely free.
Yes thanks a... |
|
giu88 |
General Coding Help |
7 |
9,215 |
Aug-26-2018, 12:55 PM |
|
|
Thread: Generate PDF reports
Post: RE: Generate PDF reports
Thanks a lot!! ReportLab looks very interesting, it looks like it does a pretty good job.
However, for now i am looking for a free solution and ReportLab is not. I will look into the other link you ... |
|
giu88 |
General Coding Help |
7 |
9,215 |
Aug-26-2018, 12:06 PM |
|
|
Thread: Generate PDF reports
Post: Generate PDF reports
Hello,
I need to generate nice-looking pdf reports with charts and tables.
Right now i am looking at three different solutions, but can't figure out which is the most appropriate.
-1 Using Matpl... |
|
giu88 |
General Coding Help |
7 |
9,215 |
Aug-26-2018, 11:20 AM |
|
|
Thread: Help with GUI and MVC pattern
Post: RE: Help with GUI and MVC pattern
Found a solution!! I hope it can help other people!
I used Pypubsub to create publisher-subscriber. This way you can create commnunication channels in the MVC. |
|
giu88 |
GUI |
1 |
2,788 |
Aug-17-2018, 11:34 AM |
|
|
Thread: PyPubSUb in Python 2.7 - Error
Post: PyPubSUb in Python 2.7 - Error
Hello,
Trying to use the PyPubSub library. When i import the library
from pubsub import pubi get the following error:
Error:getDefaultPublisher() -> Publisher:
SyntaxError: Invalid syntaxWhy ca... |
|
giu88 |
GUI |
0 |
2,571 |
Aug-17-2018, 09:29 AM |
|
|
Thread: Help with GUI and MVC pattern
Post: Help with GUI and MVC pattern
Hello,
I need some help understanding the MVC pattern, i am using python. As i understood by reading around, there are two ways to implement this.
First Way
Viewer/controller can talk to the Model ... |
|
giu88 |
GUI |
1 |
2,788 |
Aug-15-2018, 07:40 PM |
|
|
Thread: Append string to StaticText
Post: Append string to StaticText
Hello,
I have a StaticText where i can set the label with
mystaticText.setLabel("Hello")However, when i use SetLabel, the string showed in the textBox disappeares and is replaced by the new one.
I... |
|
giu88 |
GUI |
1 |
2,530 |
Aug-14-2018, 01:58 PM |
|
|
Thread: How to create a static white box text
Post: RE: How to create a static white box text
This looks like it worked!
box_horiz = wx.BoxSizer(wx.HORIZONTAL)
self.textPath = wx.StaticText(panel, label="hello", style=wx.TE_READONLY|wx.BORDER_SUNKEN)
self.textPath.SetBackgroun... |
|
giu88 |
GUI |
2 |
2,529 |
Aug-14-2018, 10:48 AM |
|
|
Thread: How to create a static white box text
Post: How to create a static white box text
Hello,
I need to create a very simple box to show the path of a file. The application will show, at start up, in the same row (i will use boxSizer(horizontal), a white box empty and a "browse" button... |
|
giu88 |
GUI |
2 |
2,529 |
Aug-14-2018, 09:43 AM |
|
|
Thread: Help with Python technologies and structure code
Post: RE: Help with Python technologies and structure co...
Thanks, i'll have a look at Flask. |
|
giu88 |
Data Science |
13 |
6,107 |
Aug-11-2018, 09:34 PM |