User Profile
Collapse
-
thanks, and if you want to convert back would you just use binascii -
hi thanks for the help, can you explain how it works i dont really get itLeave a comment:
-
how to convert a string to binary ?
is it possible to convert a string to an ascii binary representation for example
string = "h"
h in binary = 01001000 -
help with this error ?
i get this error every time i try to save a file
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python32\li b\tkinter\__ini t__.py", line 1399, in __call__
return self.func(*args )
File "C:\Users\rocco \Desktop\getwhi tenew2.py", line 60, in savefile
f.write(get)
File "C:\Python32\li b\encodings\cp1 252.py", line 19, in... -
Code:<?php $url = $_GET["url"]; echo $url; require 'controllers/' .$url; $controller = new $url; ?>
error:Code:<?php class Index { function __construct() { echo 'we are in index'; } } ?>
( !...Leave a comment:
-
help with echoing out the url
hi this should work but i do not know why its not working
Code:$url = $_GET['url']; echo $url;
-
i have used the same highlight function as in the example you gave me i just removed the self and tried using both tkinter.text and textWidget to see if they work, i used
and i revived an error stating that tag_names takes at least 1 argumentCode:if "highlight" in tkinter.Text.tag_names():
then i changed it back just to :
i get no...Code:if "highlight" in Text.tag_names():
Leave a comment:
-
Code:button4 = ttk.Button(content,text="highlight", command=lambda: highlight(" "))Leave a comment:
-
so basically i think the highlight function is not working with my buttonLeave a comment:
-
yeah i replaced it and the program does work in python 3, i'm struggling to understand how the highlighting is done in that program, still cant get the highlighting to work in my programLeave a comment:
-
im using tkinter.Text widget ?, im confused, so the example wont work in python 3Leave a comment:
-
i tried to modify the code, but something went wrong it is not highlighting anything
...Code:def highlight(seq): if "highlight" in Text.tag_names(): Text.tag_delete("highlight") i = len(seq) index = "1.0" while True: index = Text.search(seq, index, nocase=1, stopindex='end') if index:Leave a comment:
-
help with sorting out messages
i have random mobile number with text messages, how would i go about only viewing the numbers i want for example 1234
i got this but its not working ??
...Code:$m = new Soap_connect; #get the messages $get_msg = $m->peekmessage(); $number_to_match = '447888445445447817814149'; foreach($get_msg as $msg){ preg_match('/^(\d{24})(\d{2}\/\d{2}\/\d{4}) (\d{2}:\d{2}:\d{2})SMS\d(.*)/',$msg,$matches); -
as im trying to highlight white spaces, is there away of highlighting in a for loop, for example for " " in ttk.Text, highlight in yellow ??Leave a comment:
-
is there any tutorial, or documentation on using tags and doing highlights in python 3 ?
i have tried this but its not working
...Code:def highlight(seq): if "highlight" in Text.tag_names(): Text.tag_delete("highlight") i = len(seq) index = "1.0" while True: index = Text.search(seq, index, nocase=1, stopindex='end')Leave a comment:
-
moroccanplaya started a topic how to highlight text in tkinter? , do you know what i am doing wrong ?in Pythonhow to highlight text in tkinter? , do you know what i am doing wrong ?
hi i have text in a tkinter text widget, how would i highlight specific letters?
the code above just adds s to the end of the text, do you know what i am doing wrong ?Code:Text.tag_config("s", background="yellow") Text.insert(END,("s")) -
-
to bvdet i have downloaded the lxml parser how would you parse the url?
to dwlabs i have trouble explaining this here is my full code if you run it and type in the any url it will get the source code and display it in a text box when you compare the sourcecode from the website and the source code been copied into the text box the format is different the only exception is python.org,
...Code:#!/usr/bin/env python
Leave a comment:
-
plus readline outputs the whole source code in one line which i do not wantLeave a comment:
-
are you outputting the source code in the tkinter text widget ??Leave a comment:
No activity results to display
Show More
Leave a comment: