Questions tagged [listproperty]
38 questions
7
votes
1 answer
Using ListProperty in JavaFX
I define a class with the list in it. I am trying to initialize the list in constructor with transmitted list:
public class Person {
public IntegerProperty id;
public ListProperty choice;
public Person(int id, List…
![](../../users/profiles/1691070.webp)
user1691070
- 335
- 2
- 3
- 8
5
votes
6 answers
NotSerializableException on SimpleListProperty
I'm using Javafx, and I wrap my objects into ListProperty to let the tableview updates for any changes on the objects of the list. Now I'm trying to serialize my project and the ListProperty of objects and it throw me this exception.…
![](../../users/profiles/2704938.webp)
user2704938
- 81
- 2
- 5
2
votes
1 answer
Kivy returns "AttributeError: 'NoneType' object has no attribute 'bind'" when accessing ListProperty
I'm trying to create a screen that displays an image file whose path is stored in a ListProperty. I understand that the error message indicates that Kivy is trying to access the value before the ListProperty is created, but I don't know how to fix…
![](../../users/profiles/6061121.webp)
DevilsFan
- 29
- 3
2
votes
1 answer
How to sort a JavaFX ListProperty
it seems I have encountered a problem with ListProperties. ObservableLists implement the marker interface SortableList that allows them to be sorted efficiently, firing only a single event. ListProperties do not implement this interface (how could…
![](../../users/profiles/3884139.webp)
Grannath
- 89
- 4
1
vote
2 answers
Time inequality filters on app engine ListProperty fail when chained
I have ListProperty's in an entity that contains two time objects that represent a business' open and closing times for a day of the week:
mon_hours = db.ListProperty(datetime.time)
tue_hours = db.ListProperty(datetime.time)
wed_hours =…
![](../../users/profiles/977688.webp)
scottzer0
- 133
- 4
1
vote
1 answer
Kivy - Accessing Elements of a ListProperty in .kv file
I have started programming with Kivy, the amazing open-source GUI library in Python.
I came accross a problem close to this topic but it has no satisfying answer.
I want to access the elements of a ListProperty attached to my widget in my .kv file…
![](../../users/profiles/8278992.webp)
MattL
- 87
- 7
1
vote
1 answer
Querying datastore for all models that contain a certain element within a listproperty
Hey, I have a model like this:
class List(db.Model):
user = db.ReferenceProperty(User)
listname = db.StringProperty()
published = db.DateTimeProperty(auto_now_add=True)
score = db.IntegerProperty(required=False)
tld =…
![](../../users/profiles/497743.webp)
tomcritchlow
- 739
- 2
- 10
- 28
1
vote
1 answer
How Do List Properties Impact the Index Entries per Entity in Google App Engine?
I know that there is a limit of 5000 index entries per entity, which
means I can't do things like this:
class Foo(db.Model):
x = db.ListProperty(int)
y = db.ListProperty(int)
foo1 = Foo(x = range(5001))
foo1.put()
Furthermore, if I have the…
![](../../users/profiles/226121.webp)
ryan
- 2,241
- 3
- 22
- 28
1
vote
3 answers
Is it possible to dynamically name attributes in an App Engine Model?
setattr allows you to dynamically name attributes in Python classes. I'm trying to do something similar with an App Engine Model:
class MyModel(db.Model):
def __init__(self, *args, **kwargs):
super(MyModel, self).__init__(*args,…
![](../../users/profiles/154065.webp)
Matt Norris
- 7,408
- 11
- 51
- 88
1
vote
0 answers
Kivy - multiprocessing. call kivy widget functions via other processes / Alter Kivy Listproperty from outside kivy's thread
Following Matt's answer from this Question I am trying to use
clock.schedule in another process in order to alter my ListProperty called "data_items" but still I get the error "global name 'set_property' is not defined".
beedo.py:
class…
![](../../users/profiles/6706463.webp)
Pipe007
- 11
- 3
1
vote
1 answer
Using GQL sort by the count of a ListProperty
If I have an db.Model object such as:
class Foo(db.Model):
title = db.StringProperty()
bars = db.ListProperty(db.Key)
and I wanted to query the datastore for all of the Foo entities and sort that set by the Foo objects that have the most…
![](../../users/profiles/465422.webp)
krotos
- 13
- 2
1
vote
1 answer
How to make JavaFX ListProperty modifiable only through custom methods
I have a private list and I don't want that it can be modified from outside in general. Just adding from outside is allowed and only if the object is valid. Therefore I used to write it like this:
private List
![](../../users/profiles/5736386.webp)
Arceus
- 440
- 4
- 16
1
vote
3 answers
Sorting a StringListProperty based on position of element in app engine
I have model which looks like this:
class Example (db.Model) :
name = db.StringProperty()
tags = db.StringListProperty()
I first query for a tag to get the list of entities which have them:
results = Example.all().filter("tags =",…
![](../../users/profiles/348663.webp)
demos
- 2,504
- 8
- 33
- 50
1
vote
1 answer
JavaFX ListProperty filter for combobox
I have a ListProperty in which I load the application operator list from the database. I would like to display only the operators that have an active status in a ComboBox.
I have tried to filter it when the ListProperty is modified, but when I only…
![](../../users/profiles/4716566.webp)
Mathieu DARÉ
- 11
- 2
1
vote
2 answers
Is there a CHANGEABLE ListProperty in JavaFX?
Is there a CHANGEABLE ListProperty in JavaFX?
I need a ListProperty supprting add() and remove() methods, but I couldnt't find one.
SimpleListProperty will throw UnsupportedOperationException.
All I found is to use the initializer to set the…
![](../../users/profiles/1714490.webp)
ZioByte
- 1,822
- 21
- 44