« first day (126 days earlier)      last day (3230 days later) » 

2:06 AM
0
A: Removing a selection from a listbox, as well as remove it from the list that provides it

maccartmfrom tkinter import * things = [{"dictionaryItem":"value"}, {"anotherDict":"itsValue"}, 3, "foo", ["bar", "baz"]] root = Tk() f = Frame(root).pack() l = Listbox(root) b = Button(root, text = "delete selection", command = lambda: delete(l)) b.pack() l.pack() for i in range(5): l.insert(END, t...

 
1 message moved from Python
 
 
12 hours later…
2:29 PM
-2
Q: How to replace a word with an instance of itself.

akshitBhatiaThe problem is to use regular expressions and replace a word using the word itself. for example in the following Input: {abc : "xyz", cde : {}, fgh : ["hfz"]} Expected output {"abc" : "xyz", "cde" : {}, "fgh" : ["hfz"]} To achieve this, the regular expression must match word followed by ...

 
1 message moved from Python
 
 
8 hours later…
10:23 PM
class FeedbackRate(enum.Enum):
FEEDBACK_CHOICES = (
(1, '1'),
(2, '2'),
(3, '3'),
(4, '4'),
(5, '5'),
(6, '6'),
(7, '7'),
(8, '8'),
(9, '9'),
(10, '10'),
)

RECOMMEND_RATES = (
(1, '1'),
(2, '2'),
(3, '3'),
(4, '4'),
(5, '5'),
(6, '6'),
(7, '7'),
(8, '8'),
(9, '9'),
(10, '10'),
)
 
1 message moved from Python
 
class FeedbackForm(ModelForm):
class Meta:
model = Feedback
widgets = {
'feedback_choice': forms.RadioSelect(),
'recommend_rate': forms.RadioSelect(),
}
exclude = []

def __init__(self, *args, **kwargs):
super(FeedbackForm, self).__init__(*args, **kwargs)
 
1 message moved from Python
 
10:35 PM
guy can anyone help me there with this feedback form ? pls
 
2 messages moved from Python
 

« first day (126 days earlier)      last day (3230 days later) »